From 98bfd9a8cc23930e6becd15fffabadd1c269b0a2 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 24 Mar 2022 17:51:20 +0200 Subject: [PATCH] fix: remove always true condition (#4590) --- lib/commands/owner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/owner.js b/lib/commands/owner.js index e74efac1baf6a..07f71c5974768 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)