Skip to content

Commit

Permalink
chore: fix always true condition (npm#4590)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Mar 24, 2022
1 parent 723a091 commit f4f933e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/owner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f4f933e

Please sign in to comment.