From 2c61ec14da6aafc242d083e25fe556ed71989434 Mon Sep 17 00:00:00 2001 From: Veilza Date: Sun, 1 Sep 2024 02:48:17 -0500 Subject: [PATCH] Linting --- system/actor/htr/scripts/prepare-data.js | 2 +- system/actor/vtm/scripts/prepare-data.js | 2 +- system/actor/wta/scripts/prepare-data.js | 2 +- system/api/def/base-definition-class.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/system/actor/htr/scripts/prepare-data.js b/system/actor/htr/scripts/prepare-data.js index 7c79304d..c54b867e 100644 --- a/system/actor/htr/scripts/prepare-data.js +++ b/system/actor/htr/scripts/prepare-data.js @@ -5,7 +5,7 @@ import { Edges } from '../../../api/def/edges.js' export const prepareEdges = async function (actor) { // Secondary variables const edgesList = Edges.getList({}) - let edges = actor.system?.edges + const edges = actor.system?.edges // Clean up non-existent edges, such as custom ones that no longer exist const validEdges = new Set(Object.keys(edgesList)) diff --git a/system/actor/vtm/scripts/prepare-data.js b/system/actor/vtm/scripts/prepare-data.js index c247a3b7..be0efd62 100644 --- a/system/actor/vtm/scripts/prepare-data.js +++ b/system/actor/vtm/scripts/prepare-data.js @@ -4,7 +4,7 @@ import { Disciplines } from '../../../api/def/disciplines.js' export const prepareDisciplines = async function (actor) { // Secondary variables const disciplinesList = Disciplines.getList({}) - let disciplines = actor.system?.disciplines + const disciplines = actor.system?.disciplines // Clean up non-existent disciplines, such as custom ones that no longer exist const validDisciplines = new Set(Object.keys(disciplinesList)) diff --git a/system/actor/wta/scripts/prepare-data.js b/system/actor/wta/scripts/prepare-data.js index f2289ba8..7bd27499 100644 --- a/system/actor/wta/scripts/prepare-data.js +++ b/system/actor/wta/scripts/prepare-data.js @@ -4,7 +4,7 @@ import { Gifts } from '../../../api/def/gifts.js' export const prepareGifts = async function (actor) { // Secondary variables const giftsList = Gifts.getList({}) - let gifts = actor.system?.gifts + const gifts = actor.system?.gifts // Clean up non-existent gifts, such as custom ones that no longer exist const validGifts = new Set(Object.keys(giftsList)) diff --git a/system/api/def/base-definition-class.js b/system/api/def/base-definition-class.js index 92b02d9f..7303c836 100644 --- a/system/api/def/base-definition-class.js +++ b/system/api/def/base-definition-class.js @@ -13,7 +13,7 @@ export class BaseDefinitionClass { custom = false }) { // Filter based on given filters provided with the function, if any - let filteredEntries = Object.entries(this) + const filteredEntries = Object.entries(this) .filter(([, value]) => typeof value === 'object' && value !== null && !Array.isArray(value) && (!type || value.type === type) && (!custom || value.custom === custom))