mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 15:27:54 +00:00
Add necessary curly brackets
This commit is contained in:
parent
5fe0e9395f
commit
af85a8a340
@ -1287,13 +1287,15 @@ window.qBittorrent.DynamicTable = (function() {
|
|||||||
return false;
|
return false;
|
||||||
break; // do nothing
|
break; // do nothing
|
||||||
|
|
||||||
default:
|
default: {
|
||||||
let rowTags = row['full_data'].tags.split(', ');
|
let rowTags = row['full_data'].tags.split(', ');
|
||||||
rowTags = rowTags.map(function(tag) {
|
rowTags = rowTags.map(function(tag) {
|
||||||
return genHash(tag);
|
return genHash(tag);
|
||||||
});
|
});
|
||||||
if (!rowTags.contains(tagHashInt))
|
if (!rowTags.contains(tagHashInt))
|
||||||
return false;
|
return false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1305,12 +1307,13 @@ window.qBittorrent.DynamicTable = (function() {
|
|||||||
if (row['full_data'].trackers_count !== 0)
|
if (row['full_data'].trackers_count !== 0)
|
||||||
return false;
|
return false;
|
||||||
break;
|
break;
|
||||||
default:
|
default: {
|
||||||
const tracker = trackerList.get(trackerHashInt);
|
const tracker = trackerList.get(trackerHashInt);
|
||||||
if (tracker && !tracker.torrents.includes(row['full_data'].rowId))
|
if (tracker && !tracker.torrents.includes(row['full_data'].rowId))
|
||||||
return false;
|
return false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((filterTerms !== undefined) && (filterTerms !== null)
|
if ((filterTerms !== undefined) && (filterTerms !== null)
|
||||||
&& (filterTerms.length > 0) && !window.qBittorrent.Misc.containsAllTerms(name, filterTerms))
|
&& (filterTerms.length > 0) && !window.qBittorrent.Misc.containsAllTerms(name, filterTerms))
|
||||||
|
Loading…
Reference in New Issue
Block a user