diff options
author | mat <github@matdoes.dev> | 2022-05-30 20:09:58 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-05-30 20:09:58 -0500 |
commit | 0108e58c6c74825ce30867ddb589f19c466d4c7a (patch) | |
tree | 4833c16a50725ae909cd25cf64457690f89d0196 /src/cleaners/skyblock | |
parent | f8b1876203c6d0449e597bf9d9de4bdabf55b242 (diff) | |
download | skyblock-api-0108e58c6c74825ce30867ddb589f19c466d4c7a.tar.gz skyblock-api-0108e58c6c74825ce30867ddb589f19c466d4c7a.tar.bz2 skyblock-api-0108e58c6c74825ce30867ddb589f19c466d4c7a.zip |
Fix error that happens sometimes
Diffstat (limited to 'src/cleaners/skyblock')
-rw-r--r-- | src/cleaners/skyblock/profiles.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cleaners/skyblock/profiles.ts b/src/cleaners/skyblock/profiles.ts index 519c6d5..4e9400b 100644 --- a/src/cleaners/skyblock/profiles.ts +++ b/src/cleaners/skyblock/profiles.ts @@ -21,7 +21,7 @@ export function cleanPlayerSkyblockProfiles(rawProfiles: HypixelPlayerStatsSkyBl /** Convert an array of raw profiles into clean profiles */ export async function cleanSkyblockProfilesResponse(data: typedHypixelApi.SkyBlockProfilesResponse['profiles']): Promise<CleanFullProfile[] | null> { - if (data === null) return null + if (!data) return null const promises: Promise<CleanFullProfile | null>[] = [] for (const profile of data) { |