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:
Alexander Minges 2025-07-28 22:20:29 +02:00
parent e021fedcdf
commit 2c4dbb2620
Signed by: Athemis
GPG key ID: 31FBDEF92DDB162B

View file

@ -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(