Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Veilza committed Sep 1, 2024
1 parent 68d905a commit 2c61ec1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion system/actor/htr/scripts/prepare-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion system/actor/vtm/scripts/prepare-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion system/actor/wta/scripts/prepare-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion system/api/def/base-definition-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 2c61ec1

Please sign in to comment.