From f4f933e44b305d3b39ca608cb3ccf88e9521294d Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 24 Mar 2022 17:51:20 +0200 Subject: [PATCH] chore: fix 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)