Enable no unused vars and add more types

This commit is contained in:
Carlos Fernandez 2026-06-14 15:12:47 -04:00
parent af49c1f4c8
commit ba11651b0c
20 changed files with 141 additions and 31 deletions

View file

@ -318,7 +318,7 @@ export function getDocFromElementSync(element) {
const target = element.closest('[data-item-uuid]');
try {
return foundry.utils.fromUuidSync(target.dataset.itemUuid) ?? null;
} catch (_) {
} catch {
return null;
}
}
@ -377,7 +377,7 @@ export const itemAbleRollParse = (value, actor, item) => {
try {
return Roll.replaceFormulaData(slicedValue, rollData);
} catch (_) {
} catch {
return '';
}
};