Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Veilza committed Aug 10, 2024
1 parent ba12ffe commit 7660406
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
*.json
*.md
LICENSE
*.css
10 changes: 4 additions & 6 deletions system/scripts/migration/migrate-rolldata-to-dicepools.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const MigrateRolldataToDicepools = async function () {
// If the item was previously rollable, migrate the rolldata to the new format
if (item.system?.rollable) {
hasFixedItems = true
let dicepool = {}
const dicepool = {}

if (item.system.dice1) {
const randomID = foundry.utils.randomID(8)
Expand Down Expand Up @@ -46,11 +46,9 @@ export const MigrateRolldataToDicepools = async function () {
}

// Remove unnecessary data
const { roll1, roll2, rollable, ...remainingSystem } = updatedItem.system
roll1 = null
roll2 = null
rollable = null
updatedItem.system = remainingSystem
delete updatedItem.system.roll1
delete updatedItem.system.roll2
delete updatedItem.system.rollable

// Push the updated item to the array
updatedItems.push(updatedItem)
Expand Down

0 comments on commit 7660406

Please sign in to comment.