Fix linting errors

This commit is contained in:
Jason Fischer 2022-09-12 20:06:00 -07:00
parent 95b6ea0e23
commit b19b4f047e
2 changed files with 16 additions and 15 deletions

View file

@ -28,16 +28,17 @@ export default function Transmission({ service }) {
);
}
const torrents = torrentData.arguments.torrents;
const { torrents } = torrentData.arguments;
let rateDl = 0;
let rateUl = 0;
let completed = 0;
for (let torrent of torrents) {
for (let i = 0; i < torrents.length; i += 1) {
const torrent = torrents[i];
rateDl += torrent.rateDownload;
rateUl += torrent.rateUpload;
if (torrent.percentDone === 1) {
completed++;
completed += 1;
}
}