Skip to content

Commit

Permalink
src: remove unnecessary 'Local.As' operation
Browse files Browse the repository at this point in the history
PR-URL: #32286
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
himself65 authored and addaleax committed Mar 30, 2020
1 parent b8b8e82 commit e2b08f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_env_var.cc
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ Maybe<bool> KVStore::AssignFromObject(Local<Context> context,

Local<Value> value;
Local<String> value_string;
if (!entries->Get(context, key.As<String>()).ToLocal(&value) ||
if (!entries->Get(context, key).ToLocal(&value) ||
!value->ToString(context).ToLocal(&value_string)) {
return Nothing<bool>();
}
Expand Down

0 comments on commit e2b08f0

Please sign in to comment.