mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
refact: use short form comparison
This commit is contained in:
parent
26b75fcebd
commit
8440d8e6c9
1 changed files with 3 additions and 3 deletions
|
@ -1560,7 +1560,7 @@ window.qBittorrent.DynamicTable ??= (() => {
|
|||
// percent_selected
|
||||
this.columns["percent_selected"].updateTd = function(td, row) {
|
||||
const hasMetadata = this.getRowValue(row, 0);
|
||||
if (hasMetadata === false) {
|
||||
if (!hasMetadata) {
|
||||
td.textContent = "QBT_TR(N/A)QBT_TR[CONTEXT=TrackerListWidget]";
|
||||
td.title = "QBT_TR(N/A)QBT_TR[CONTEXT=TrackerListWidget]";
|
||||
return;
|
||||
|
@ -1582,9 +1582,9 @@ window.qBittorrent.DynamicTable ??= (() => {
|
|||
const hasMetadata1 = this.getRowValue(row1, 0);
|
||||
const hasMetadata2 = this.getRowValue(row2, 0);
|
||||
|
||||
if ((hasMetadata1 === true) && (hasMetadata2 === false))
|
||||
if (hasMetadata1 && !hasMetadata2)
|
||||
return -1;
|
||||
if ((hasMetadata1 === false) && (hasMetadata2 === true))
|
||||
if (!hasMetadata1 && hasMetadata2)
|
||||
return 1;
|
||||
|
||||
const size1 = this.getRowValue(row1, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue