From 81429cd1172b082f9eae5fc2ddfb0cc7d2d19977 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 18 Dec 2020 19:08:56 +0100 Subject: [PATCH] Fix eslint issue in `Form/Builder/Field/Dependency/Value` --- .../js/WoltLabSuite/Core/Form/Builder/Field/Dependency/Value.js | 2 +- .../ts/WoltLabSuite/Core/Form/Builder/Field/Dependency/Value.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1