mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
WebUI: enforce strict comparison operators
This commit is contained in:
@@ -506,7 +506,7 @@ const initializeWindows = function() {
|
||||
|
||||
renameFN = function() {
|
||||
const hashes = torrentsTable.selectedRowsIds();
|
||||
if (hashes.length == 1) {
|
||||
if (hashes.length === 1) {
|
||||
const hash = hashes[0];
|
||||
const row = torrentsTable.rows[hash];
|
||||
if (row) {
|
||||
@@ -529,7 +529,7 @@ const initializeWindows = function() {
|
||||
|
||||
renameFilesFN = function() {
|
||||
const hashes = torrentsTable.selectedRowsIds();
|
||||
if (hashes.length == 1) {
|
||||
if (hashes.length === 1) {
|
||||
const hash = hashes[0];
|
||||
const row = torrentsTable.rows[hash];
|
||||
if (row) {
|
||||
|
||||
Reference in New Issue
Block a user