From 0229e6746cb8d99928df848b96875b46c1f00b31 Mon Sep 17 00:00:00 2001 From: Jon Moss Date: Wed, 11 Oct 2017 16:57:35 -0400 Subject: [PATCH] repl: remove unused err argument Not used by any callers in `lib/repl.js`, and is not public API. PR-URL: https://github.com/nodejs/node/pull/16152 Reviewed-By: Colin Ihrig Reviewed-By: Prince John Wesley Reviewed-By: Joyee Cheung Reviewed-By: Luigi Pinca Reviewed-By: Franziska Hinkelmann Reviewed-By: James M Snell --- lib/repl.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/repl.js b/lib/repl.js index 3ed7f7dd6d8..feaa4b32df5 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -1025,9 +1025,7 @@ function complete(line, callback) { // Will be called when all completionGroups are in place // Useful for async autocompletion - function completionGroupsLoaded(err) { - if (err) throw err; - + function completionGroupsLoaded() { // Filter, sort (within each group), uniq and merge the completion groups. if (completionGroups.length && filter) { var newCompletionGroups = [];