WebUI: enforce strict comparison operators

This commit is contained in:
Chocobo1 2024-04-21 14:11:21 +08:00
parent 75e2ae2fa0
commit 4945ed576a
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
19 changed files with 70 additions and 68 deletions

View file

@ -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) {