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

@@ -28,9 +28,8 @@
"use strict";
if (window.qBittorrent === undefined) {
if (window.qBittorrent === undefined)
window.qBittorrent = {};
}
window.qBittorrent.FileTree = (function() {
const exports = function() {
@@ -77,9 +76,8 @@ window.qBittorrent.FileTree = (function() {
generateNodeMap: function(node) {
// don't store root node in map
if (node.root !== null) {
if (node.root !== null)
this.nodeMap[node.rowId] = node;
}
node.children.each((child) => {
this.generateNodeMap(child);