From 5b79e43ec213fd97d07b586f2c0e43ca855fdcd5 Mon Sep 17 00:00:00 2001 From: Regalijan <72576136+Regalijan@users.noreply.github.com> Date: Fri, 13 Dec 2024 23:28:58 +0000 Subject: [PATCH] Don't reject for zero failures --- lib/users/getPlayerInfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/users/getPlayerInfo.js b/lib/users/getPlayerInfo.js index e061374a..b574fb3d 100644 --- a/lib/users/getPlayerInfo.js +++ b/lib/users/getPlayerInfo.js @@ -50,7 +50,7 @@ function getPlayerInfo (userId) { isBanned, displayName }) - } else if (failedResponses) { + } else if (failedResponses.length) { reject(new Error(failedResponses.map(r => r.reason).join('\n'))) } else { const responseBodies = responses.map(res => res.body ?? res)