Skip to content

Commit

Permalink
fix: remove always true condition (#4590)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored and fritzy committed Mar 24, 2022
1 parent 723a091 commit 98bfd9a
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 98bfd9a

Please sign in to comment.