Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Apr 21, 2019
1 parent 930dac1 commit d640cd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/adduser.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ function adduser (args, cb) {

log.disableProgress()

let auth
try {
const auth = require('./auth/' + npm.config.get('auth-type'))
auth = require('./auth/' + npm.config.get('auth-type'))
} catch (e) {
return cb(new Error('no such auth module'))
}
Expand Down

0 comments on commit d640cd9

Please sign in to comment.