From 32e6bb32b2e8f8c7cf44f7944d3aabc18b56c7b5 Mon Sep 17 00:00:00 2001 From: MaleDong Date: Mon, 11 Feb 2019 07:32:26 +0800 Subject: [PATCH] lib: merge 'undefined' into one 'break' branch We don't need to split this alone, but just merge it into the 'break' switch branch together. PR-URL: https://github.com/nodejs/node/pull/26039 Reviewed-By: Anna Henningsen Reviewed-By: Richard Lau Reviewed-By: Minwoo Jung Reviewed-By: Anto Aravinth Reviewed-By: Gus Caplan Reviewed-By: Luigi Pinca Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- lib/internal/main/print_help.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/internal/main/print_help.js b/lib/internal/main/print_help.js index ca60994d942c6c..ef1cb9ce4bb880 100644 --- a/lib/internal/main/print_help.js +++ b/lib/internal/main/print_help.js @@ -65,6 +65,7 @@ function getArgDescription(type) { case 'kNoOp': case 'kV8Option': case 'kBoolean': + case undefined: break; case 'kHostPort': return '[host:]port'; @@ -73,8 +74,6 @@ function getArgDescription(type) { case 'kString': case 'kStringList': return '...'; - case undefined: - break; default: require('assert').fail(`unknown option type ${type}`); }