WebUI: unify curly bracket usage

This commit is contained in:
Chocobo1
2024-06-07 02:22:57 +08:00
committed by sledgehammer999
parent 671943a9a6
commit fa58e58e70
32 changed files with 177 additions and 252 deletions

View File

@@ -28,9 +28,8 @@
"use strict";
if (window.qBittorrent === undefined) {
if (window.qBittorrent === undefined)
window.qBittorrent = {};
}
window.qBittorrent.Misc = (function() {
const exports = function() {
@@ -86,8 +85,9 @@ window.qBittorrent.Misc = (function() {
}
let ret;
if (i === 0)
if (i === 0) {
ret = value + " " + units[i];
}
else {
const precision = friendlyUnitPrecision(i);
const offset = Math.pow(10, precision);