WebUI: enforce coding style

Actually, not all of them but some that can be enforced by eslint.
The changes are made by eslint with minor manual tweaking.

PR #17046.
This commit is contained in:
Chocobo1 2022-05-18 11:37:05 +08:00 committed by GitHub
parent 5af96943e3
commit dbfd6a2368
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 155 additions and 98 deletions

View file

@ -879,7 +879,7 @@ const initializeWindows = function() {
hashes = torrentsTable.getFilteredTorrentsHashes('all', CATEGORIES_ALL, TAGS_ALL, TRACKERS_TRACKERLESS);
break;
default:
hashes = trackerList.get(trackerHashInt).torrents
hashes = trackerList.get(trackerHashInt).torrents;
break;
}
@ -962,7 +962,8 @@ const initializeWindows = function() {
const hashes = torrentsTable.selectedRowsIds();
for (const hash of hashes) {
const row = torrentsTable.rows.get(hash);
if (!row) return
if (!row)
return;
const name = row.full_data.name;
const url = new URI("api/v2/torrents/export");