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/dist-tag.js')
-rw-r--r--deps/npm/lib/dist-tag.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/npm/lib/dist-tag.js b/deps/npm/lib/dist-tag.js
index ae4b33ce864..e958bb75442 100644
--- a/deps/npm/lib/dist-tag.js
+++ b/deps/npm/lib/dist-tag.js
@@ -16,14 +16,14 @@ const usage = usageUtil(
'\nnpm dist-tag ls [<pkg>]'
)
-const completion = function (opts, cb) {
+const completion = async (opts) => {
const argv = opts.conf.argv.remain
if (argv.length === 2)
- return cb(null, ['add', 'rm', 'ls'])
+ return ['add', 'rm', 'ls']
switch (argv[2]) {
default:
- return cb()
+ return []
}
}