Lint and cleanup unused code
This commit is contained in:
parent
de1b976b12
commit
5d951d043b
5 changed files with 6 additions and 7 deletions
|
|
@ -90,7 +90,7 @@ export class AttributeItemData extends foundry.abstract.TypeDataModel {
|
|||
const max = getProperty(data, `system.max`) ?? this.max;
|
||||
|
||||
let min = getProperty(data, `system.min`) ?? this.min;
|
||||
if (max != null) { min ??= 0; };
|
||||
if (max != null) { min ??= 0 };
|
||||
|
||||
setProperty(data, `system.value`, clamp(min, value, max));
|
||||
};
|
||||
|
|
@ -106,6 +106,7 @@ export class AttributeItemData extends foundry.abstract.TypeDataModel {
|
|||
if (this.isRange) {
|
||||
return this.min ?? 0;
|
||||
};
|
||||
return null;
|
||||
};
|
||||
// #endregion Methods
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue