Skip to content

Commit 0229e67

Browse files
maclover7joyeecheung
authored andcommitted
repl: remove unused err argument
Not used by any callers in `lib/repl.js`, and is not public API. PR-URL: #16152 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent a766f6d commit 0229e67

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/repl.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,9 +1025,7 @@ function complete(line, callback) {
10251025

10261026
// Will be called when all completionGroups are in place
10271027
// Useful for async autocompletion
1028-
function completionGroupsLoaded(err) {
1029-
if (err) throw err;
1030-
1028+
function completionGroupsLoaded() {
10311029
// Filter, sort (within each group), uniq and merge the completion groups.
10321030
if (completionGroups.length && filter) {
10331031
var newCompletionGroups = [];

0 commit comments

Comments
 (0)