aboutsummaryrefslogtreecommitdiff
path: root/build/cleaners/player.js
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-03-01 13:48:21 -0600
committermat <27899617+mat-1@users.noreply.github.com>2021-03-01 13:48:21 -0600
commit40e9f8f0a90cc784e266c9a1c8f2da1de90107ea (patch)
tree31ed940554efdd2802945933c87626f9c4b57c3f /build/cleaners/player.js
parente7f891c00d25ab81c04d3982661a49fd2e90d913 (diff)
parent80fbc300471e138172f4527106cc2a6365894cd5 (diff)
downloadskyblock-api-40e9f8f0a90cc784e266c9a1c8f2da1de90107ea.tar.gz
skyblock-api-40e9f8f0a90cc784e266c9a1c8f2da1de90107ea.tar.bz2
skyblock-api-40e9f8f0a90cc784e266c9a1c8f2da1de90107ea.zip
Merge branch 'main' of https://github.com/skyblockstats/skyblock-api into main
Diffstat (limited to 'build/cleaners/player.js')
-rw-r--r--build/cleaners/player.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/cleaners/player.js b/build/cleaners/player.js
index a767d7e..4957e7a 100644
--- a/build/cleaners/player.js
+++ b/build/cleaners/player.js
@@ -8,6 +8,8 @@ const util_1 = require("../util");
async function cleanPlayerResponse(data) {
var _a, _b;
// Cleans up a 'player' api response
+ if (!data)
+ return; // bruh
return {
uuid: util_1.undashUuid(data.uuid),
username: data.displayname,