Skip to content

Commit

Permalink
Fix figgyPudding error in npm token
Browse files Browse the repository at this point in the history
It seems that a couple of lines were missed when token.js was [changed
to use figgyPudding][1] which [causes an error][2] when trying to run
that command in certain circumstances.  This patch fixes that error.

[1]: 4cf850d#diff-398ed3b014436a5204583323ea29320b
[2]: https://npm.community/t/npm-token-err-figgypudding-options-cannot-be-modified-use-concat-instead/10288

PR-URL: #259
Credit: @benblank
Close: #259
Reviewed-by: @isaacs
  • Loading branch information
benblank authored and isaacs committed Sep 30, 2019
1 parent bee6d42 commit bbc92fb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ function config () {
})
} else {
conf = conf.concat({ auth: {} })
conf.auth = {}
}
if (conf.otp) conf.auth.otp = conf.otp
return conf
Expand Down

0 comments on commit bbc92fb

Please sign in to comment.