diff --git a/lib/publish.js b/lib/publish.js index 6bcca48ceedf..8ef7eff4c8a6 100644 --- a/lib/publish.js +++ b/lib/publish.js @@ -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.'), {