Skip to content

Commit

Permalink
Don't reject for zero failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Regalijan authored Dec 13, 2024
1 parent e0138d0 commit 5b79e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/users/getPlayerInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5b79e43

Please sign in to comment.