mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
WebUI: unify curly bracket usage
This commit is contained in:
committed by
sledgehammer999
parent
671943a9a6
commit
fa58e58e70
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user