WebUI: remove redundant braces in switch statements

Braces are only required when there are variable/function declarations.
This commit is contained in:
Chocobo1
2025-08-24 20:15:51 +08:00
parent acab056fe4
commit 2bd0965906
3 changed files with 7 additions and 9 deletions

View File

@@ -142,7 +142,7 @@ window.qBittorrent.Search ??= (() => {
document.getElementById("SearchPanel").addEventListener("keydown", (event) => {
switch (event.key) {
case "Enter": {
case "Enter":
event.preventDefault();
event.stopPropagation();
@@ -156,7 +156,6 @@ window.qBittorrent.Search ??= (() => {
}
break;
}
}
});