Skip to content

Commit e2b08f0

Browse files
himself65addaleax
authored andcommitted
src: remove unnecessary 'Local.As' operation
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]>
1 parent b8b8e82 commit e2b08f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_env_var.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ Maybe<bool> KVStore::AssignFromObject(Local<Context> context,
286286

287287
Local<Value> value;
288288
Local<String> value_string;
289-
if (!entries->Get(context, key.As<String>()).ToLocal(&value) ||
289+
if (!entries->Get(context, key).ToLocal(&value) ||
290290
!value->ToString(context).ToLocal(&value_string)) {
291291
return Nothing<bool>();
292292
}

0 commit comments

Comments
 (0)