mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
WebUI: remove redundant braces in switch statements
Braces are only required when there are variable/function declarations.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user