Skip to content

Commit 98bfd9a

Browse files
XhmikosRfritzy
authored andcommitted
fix: remove always true condition (#4590)
1 parent 723a091 commit 98bfd9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/commands/owner.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class Owner extends BaseCommand {
125125
throw err
126126
}
127127

128-
if (user && (!u || !u.name || u.error)) {
128+
if (!u || !u.name || u.error) {
129129
throw Object.assign(
130130
new Error(
131131
"Couldn't get user data for " + user + ': ' + JSON.stringify(u)

0 commit comments

Comments
 (0)