diff options
author | isaacs <i@izs.me> | 2020-03-05 09:49:57 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-05-08 04:12:27 +0300 |
commit | 7df93b779896458348cfeb89bb6e259da2404f6a (patch) | |
tree | ba9eb892dec92c63c37fa47f5962d4f414e390e1 /lib | |
parent | b798bbfd80537f782912d788c1693c2bea908703 (diff) |
Remove two remaining BB remnants
PR-URL: https://github.com/npm/cli/pull/968
Credit: @isaacs and @mikemimik
Close: #968
Diffstat (limited to 'lib')
-rw-r--r-- | lib/auth/sso.js | 2 | ||||
-rw-r--r-- | lib/version.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/auth/sso.js b/lib/auth/sso.js index a231f1edd..162a233ca 100644 --- a/lib/auth/sso.js +++ b/lib/auth/sso.js @@ -46,7 +46,7 @@ module.exports.login = function login (creds, registry, scope, cb) { output('Logged in as %s%s on %s.', username, scopeMessage, registry) return {token} }) - }).nodeify(cb) + }).then(res => cb(null, res), cb) } function pollForSession (registry, token, opts) { diff --git a/lib/version.js b/lib/version.js index e619b191e..180f5a086 100644 --- a/lib/version.js +++ b/lib/version.js @@ -321,7 +321,7 @@ function _commit (version, localData, cb) { buildTagFlags(), message ], options) } - }).nodeify(cb) + }).then(res => cb(null, res), cb) } function stagePackageFiles (localData, options) { |