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 <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
himself65 authored and targos committed Apr 22, 2020
1 parent b6e739a commit 191cde0
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 @@ -269,7 +269,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 191cde0

Please sign in to comment.