From: Matthias Schmidt Date: Fri, 18 Dec 2020 18:08:56 +0000 (+0100) Subject: Fix eslint issue in `Form/Builder/Field/Dependency/Value` X-Git-Tag: 5.4.0_Alpha_1~526^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=81429cd1172b082f9eae5fc2ddfb0cc7d2d19977;p=GitHub%2FWoltLab%2FWCF.git Fix eslint issue in `Form/Builder/Field/Dependency/Value` --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/Dependency/Value.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/Dependency/Value.js index 5271c56a13..2e3fa676c3 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/Dependency/Value.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/Dependency/Value.js @@ -22,7 +22,7 @@ define(["require", "exports", "tslib", "./Abstract", "./Manager", "../../../../C if (!this._values) { throw new Error("Values have not been set."); } - let values = []; + const values = []; if (this._field) { if (DependencyManager.isHiddenByDependencies(this._field)) { return false; diff --git a/wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Field/Dependency/Value.ts b/wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Field/Dependency/Value.ts index 897603e076..9ecf5ace21 100644 --- a/wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Field/Dependency/Value.ts +++ b/wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Field/Dependency/Value.ts @@ -22,7 +22,7 @@ class Value extends Abstract { throw new Error("Values have not been set."); } - let values: string[] = []; + const values: string[] = []; if (this._field) { if (DependencyManager.isHiddenByDependencies(this._field)) { return false;