From 4dbcf7ac1f4a7c70b56e7870c3e9f52b0f1d472f Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sun, 4 Nov 2018 10:04:02 -0500 Subject: [PATCH] inspector: remove unused catch bindings PR-URL: https://github.com/nodejs/node/pull/24079 Reviewed-By: Sam Roberts Reviewed-By: Wyatt Preul --- lib/internal/util/inspector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/util/inspector.js b/lib/internal/util/inspector.js index 634d3302333584..7d22fdc80eccc1 100644 --- a/lib/internal/util/inspector.js +++ b/lib/internal/util/inspector.js @@ -15,7 +15,7 @@ function sendInspectorCommand(cb, onError) { } finally { session.disconnect(); } - } catch (e) { + } catch { return onError(); } }