dashboard-setting.js: simplified if condition

This commit is contained in:
Anton Linevych 2018-09-16 01:28:08 +02:00 committed by Adhityaa Chandrasekar
parent 4d82106aff
commit c9e7a3f40a

View File

@ -9,11 +9,7 @@
var settings = data.settings; var settings = data.settings;
for (var i = 0; i < settings.length; i++) { for (var i = 0; i < settings.length; i++) {
if (settings[i].id === id) { settings[i].selected = settings[i].id === id;
settings[i].selected = true;
} else {
settings[i].selected = false;
}
} }
} }