WebUI: unify curly bracket usage

This commit is contained in:
Chocobo1
2024-06-07 02:22:57 +08:00
parent 41d8f473b7
commit bf4e0df386
32 changed files with 177 additions and 252 deletions

View File

@@ -79,9 +79,8 @@
$("save").addEvent("click", (e) => {
new Event(e).stop();
if (!isFormValid()) {
if (!isFormValid())
return false;
}
const shareLimit = getSelectedRadioValue("shareLimit");
let ratioLimitValue = 0.00;
@@ -124,9 +123,8 @@
for (let i = 0; i < radios.length; ++i) {
const radio = radios[i];
if (radio.checked) {
if (radio.checked)
return (radio).get("value");
}
}
}