Fix eslint issue in `Form/Builder/Field/Dependency/Value`
authorMatthias Schmidt <gravatronics@live.com>
Fri, 18 Dec 2020 18:08:56 +0000 (19:08 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 18 Dec 2020 18:08:56 +0000 (19:08 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/Dependency/Value.js
wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Field/Dependency/Value.ts

index 5271c56a13ed5b4c393f4cae314e15df980b7ad7..2e3fa676c389204c4e93047546c7e2bbae2bcf13 100644 (file)
@@ -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;
index 897603e076dc24276f0c1ade9ee7bb79b657aad0..9ecf5ace2194270ffa4097fb1eeaaaf8cbac1bc5 100644 (file)
@@ -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;