Skip to content

Commit

Permalink
fix: lib/publish.js lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
fuhao.xu committed Dec 29, 2020
1 parent cb85c6a commit ca0ec63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const publish = async args => {
})
}

if(!opts.dryRun) {
if (!opts.dryRun) {
const creds = npm.config.getCredentialsByURI(registry)
if (!creds.token && !creds.username) {
throw Object.assign(new Error('This command requires you to be logged in.'), {
Expand Down

0 comments on commit ca0ec63

Please sign in to comment.