diff options
author | XhmikosR <xhmikosr@gmail.com> | 2022-03-24 18:51:20 +0300 |
---|---|---|
committer | Nathan Fritz <fritzy@github.com> | 2022-03-24 18:51:54 +0300 |
commit | 98bfd9a8cc23930e6becd15fffabadd1c269b0a2 (patch) | |
tree | 480a9c0eda4a0a3e33e82eca2dadc594b3b6e594 /lib/commands | |
parent | 723a0918a5a9d9f795584f85d04506fafda9ca42 (diff) |
fix: remove always true condition (#4590)
Diffstat (limited to 'lib/commands')
-rw-r--r-- | lib/commands/owner.js | 2 |
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) |