Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2022-03-24 18:51:20 +0300
committerNathan Fritz <fritzy@github.com>2022-03-24 18:51:54 +0300
commit98bfd9a8cc23930e6becd15fffabadd1c269b0a2 (patch)
tree480a9c0eda4a0a3e33e82eca2dadc594b3b6e594
parent723a0918a5a9d9f795584f85d04506fafda9ca42 (diff)
fix: remove always true condition (#4590)
-rw-r--r--lib/commands/owner.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/commands/owner.js b/lib/commands/owner.js
index e74efac1b..07f71c597 100644
--- a/lib/commands/owner.js
+++ b/lib/commands/owner.js
@@ -125,7 +125,7 @@ class Owner extends BaseCommand {
throw err
}
- if (user && (!u || !u.name || u.error)) {
+ if (!u || !u.name || u.error) {
throw Object.assign(
new Error(
"Couldn't get user data for " + user + ': ' + JSON.stringify(u)