fix: remove unused parameter in weapon callback
- Remove unused _dialog parameter from weapon attack type selection callback - Resolves ESLint error: '_dialog' is defined but never used - Maintains functionality while improving code quality This fixes the npm run lint:fix error and ensures clean ESLint compliance.
This commit is contained in:
parent
e021fedcdf
commit
2c4dbb2620
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ export class DS4Weapon extends DS4Item {
|
|||
),
|
||||
ok: {
|
||||
label: getGame().i18n.localize("DS4.GenericOkButton"),
|
||||
callback: (_event, button, _dialog) => {
|
||||
callback: (_event, button) => {
|
||||
const selectedAttackType = button.form.elements[identifier].value;
|
||||
if (selectedAttackType !== "melee" && selectedAttackType !== "ranged") {
|
||||
throw new Error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue