aboutsummaryrefslogtreecommitdiff
path: root/build/cleaners/skyblock/zones.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/cleaners/skyblock/zones.js')
-rw-r--r--build/cleaners/skyblock/zones.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/build/cleaners/skyblock/zones.js b/build/cleaners/skyblock/zones.js
index fb79441..ef7015e 100644
--- a/build/cleaners/skyblock/zones.js
+++ b/build/cleaners/skyblock/zones.js
@@ -1,8 +1,5 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.cleanVisitedZones = void 0;
-function cleanVisitedZones(data) {
- const rawZones = (data === null || data === void 0 ? void 0 : data.visited_zones) || [];
+export function cleanVisitedZones(data) {
+ const rawZones = data?.visited_zones || [];
// TODO: store all the zones that exist in SkyBlock, add add those to the array with visited being false
const zones = [];
for (const rawZoneName of rawZones) {
@@ -13,4 +10,3 @@ function cleanVisitedZones(data) {
}
return zones;
}
-exports.cleanVisitedZones = cleanVisitedZones;