Skip to content

Commit aa0cdd0

Browse files
committed
refactor(SDK): Variable naming
1 parent 9a5fc05 commit aa0cdd0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,18 @@ function insertNewDuplicate (duplicates, matchedPair, key) {
8484
}
8585

8686
function checkDuplicates (option) {
87-
var values = []
87+
var previousOptionValues = []
8888

8989
ToggleModule.duplicateErrors[option.toggle] = {}
9090

9191
for (const key in option.values) {
9292
const value = option.values[key]
93-
const matchedPair = values.find(elem => elem.value === value)
93+
const matchedPair = previousOptionValues.find(elem => elem.value === value)
9494

9595
if (matchedPair) {
9696
insertNewDuplicate(ToggleModule.duplicateErrors[option.toggle], matchedPair, key)
9797
} else {
98-
values.push({ key, value })
98+
previousOptionValues.push({ key, value })
9999
}
100100
}
101101
}

0 commit comments

Comments
 (0)