From 0df822cfa77066de0035a3e8ad3b97ac21920161 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 19 Mar 2022 22:14:22 +0200 Subject: [PATCH] chore: fix always true condition --- 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)