Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/team.js')
-rw-r--r--deps/npm/lib/team.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/deps/npm/lib/team.js b/deps/npm/lib/team.js
index 5e88011cfe1..24e8360b645 100644
--- a/deps/npm/lib/team.js
+++ b/deps/npm/lib/team.js
@@ -17,10 +17,10 @@ const usage = usageUtil(
'npm team ls <scope>|<scope:team>\n'
)
-const completion = (opts, cb) => {
+const completion = async (opts) => {
const { conf: { argv: { remain: argv } } } = opts
if (argv.length === 2)
- return cb(null, subcommands)
+ return subcommands
switch (argv[2]) {
case 'ls':
@@ -28,9 +28,9 @@ const completion = (opts, cb) => {
case 'destroy':
case 'add':
case 'rm':
- return cb(null, [])
+ return []
default:
- return cb(new Error(argv[2] + ' not recognized'))
+ throw new Error(argv[2] + ' not recognized')
}
}