Fix linting issues

This commit is contained in:
Phillip Thelen
2024-04-26 13:15:30 +02:00
parent fbdaa50fcf
commit 99a7b90247
14 changed files with 65 additions and 42 deletions

View File

@@ -21,7 +21,7 @@ export default function cleanupPinnedItems (user) {
.filter(pinnedItem => {
const { type } = pinnedItem;
const key = pinnedItem.path.split('.').slice(-1)[0];
if (simpleSeasonalPins.indexOf(type) != -1) {
if (simpleSeasonalPins.indexOf(type) !== -1) {
if (type === 'background') {
return matchers.backgrounds.match(pinnedItem.path.split('.')[1]);
} if (type === 'premiumHatchingPotion') {
@@ -32,7 +32,7 @@ export default function cleanupPinnedItems (user) {
return matchers.seasonalQuests.match(key);
}
return matchers[type].match(key);
} if (detailSeasonalPins.indexOf(type) != -1) {
} if (detailSeasonalPins.indexOf(type) !== -1) {
const item = getItemByPathAndType(type, pinnedItem.path);
if (type === 'gear' && item.klass === 'special') {
return matchers.seasonalGear.match(item.set);