From ea1785597c16caeb36e0cf4e24a17bf859654dae Mon Sep 17 00:00:00 2001 From: himself65 Date: Wed, 8 Apr 2020 23:24:29 +0800 Subject: [PATCH] src: remove duplicated code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/32719 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Gerhard Stöbich Reviewed-By: James M Snell Reviewed-By: Jiawen Geng --- src/spawn_sync.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/spawn_sync.cc b/src/spawn_sync.cc index 78e474cd8253e3..11126c478f76f7 100644 --- a/src/spawn_sync.cc +++ b/src/spawn_sync.cc @@ -1040,8 +1040,7 @@ Maybe SyncProcessRunner::CopyJsStringArray(Local js_value, js_array ->Set(context, i, - value->ToString(env()->isolate()->GetCurrentContext()) - .ToLocalChecked()) + string) .Check(); }