Skip to content

Commit 90cb2d7

Browse files
committed
refactor(SDK): var -> let
1 parent 18f626d commit 90cb2d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/modules/toggle/src/main/resources/view/toggle-module/ToggleModule.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function checkDuplicates (option) {
7878

7979
for (const key in option.values) {
8080
const value = option.values[key]
81-
var matchedPair = ToggleModule.optionValues[option.toggle].find(elem => elem.value === value)
81+
let matchedPair = ToggleModule.optionValues[option.toggle].find(elem => elem.value === value)
8282

8383
if (!matchedPair) {
8484
matchedPair = { keys: [ ], value }
@@ -91,7 +91,7 @@ function checkDuplicates (option) {
9191

9292
function pushDuplicateErrors () {
9393
for (const toggle in ToggleModule.optionValues) {
94-
for (const optionValues of Object.values(ToggleModule.optionValues[toggle])) {
94+
for (const optionValues of ToggleModule.optionValues[toggle]) {
9595
if (optionValues.keys.length > 1) {
9696
ErrorLog.push(new DuplicateToggleValueError(toggle, optionValues))
9797
}

0 commit comments

Comments
 (0)