From ca0ec6368f0ae39dbdef3d9dd309106531361991 Mon Sep 17 00:00:00 2001 From: "fuhao.xu" Date: Tue, 29 Dec 2020 20:27:53 +0800 Subject: [PATCH] fix: lib/publish.js lint error --- lib/publish.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/publish.js b/lib/publish.js index 6bcca48ceedf5..8ef7eff4c8a64 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.'), {