Lint and cleanup unused code
This commit is contained in:
parent
de1b976b12
commit
5d951d043b
5 changed files with 6 additions and 7 deletions
|
|
@ -3,7 +3,6 @@ import { TAFDocumentSheetMixin } from "./mixins/TAFDocumentSheetMixin.mjs";
|
|||
|
||||
const { HandlebarsApplicationMixin } = foundry.applications.api;
|
||||
const { ItemSheetV2 } = foundry.applications.sheets;
|
||||
const { setProperty } = foundry.utils;
|
||||
|
||||
export class AttributeItemSheet extends
|
||||
TAFDocumentSheetMixin(
|
||||
|
|
|
|||
|
|
@ -98,7 +98,6 @@ export class PlayerSheet extends
|
|||
* they occur.
|
||||
*/
|
||||
#expandedItems = new Set();
|
||||
#collapsedAttributeGroups = new Set();
|
||||
|
||||
/**
|
||||
* This method is used in order to ensure that when we hide specific
|
||||
|
|
@ -317,7 +316,7 @@ export class PlayerSheet extends
|
|||
for (const attr of attrs) {
|
||||
if (attr.system.aboveTheFold) { continue };
|
||||
|
||||
const groupName = attr.system.group ?? "Attributes";
|
||||
const groupName = attr.system.group ?? `Attributes`;
|
||||
if (!groups.has(groupName)) {
|
||||
groups.set(groupName, {
|
||||
name: groupName.titleCase(),
|
||||
|
|
@ -374,7 +373,7 @@ export class PlayerSheet extends
|
|||
for (const item of items) {
|
||||
summedWeight += item.system.quantifiedWeight ?? 0;
|
||||
const data = await this._prepareItem(item);
|
||||
if (data) preparedItems.push(data);
|
||||
if (data) { preparedItems.push(data) };
|
||||
};
|
||||
totalWeight += summedWeight;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue