diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-06-29 17:52:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-29 17:52:00 -0500 |
commit | c0c534dafb54ebf9f95a5054f576ad99de29f232 (patch) | |
tree | 8a8a81f5bd6fbb372899f769be402f0bec326149 /src/cleaners/skyblock/collections.ts | |
parent | 6c7d2de36be559f62560f00fc2297c7deec3a051 (diff) | |
download | skyblock-api-c0c534dafb54ebf9f95a5054f576ad99de29f232.tar.gz skyblock-api-c0c534dafb54ebf9f95a5054f576ad99de29f232.tar.bz2 skyblock-api-c0c534dafb54ebf9f95a5054f576ad99de29f232.zip |
enable strictNullChecks and fix all related issues (#65)
Diffstat (limited to 'src/cleaners/skyblock/collections.ts')
-rw-r--r-- | src/cleaners/skyblock/collections.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cleaners/skyblock/collections.ts b/src/cleaners/skyblock/collections.ts index 708822b..99fdc27 100644 --- a/src/cleaners/skyblock/collections.ts +++ b/src/cleaners/skyblock/collections.ts @@ -84,7 +84,7 @@ export interface Collection { } // get a category name (farming) from a collection name (wheat) -function getCategory(collectionName): CollectionCategory { +function getCategory(collectionName): CollectionCategory | undefined { for (const categoryName in COLLECTIONS) { const categoryItems = COLLECTIONS[categoryName] if (categoryItems.includes(collectionName)) |