Prefer const over let

This commit is contained in:
Linus Unnebäck
2018-10-10 21:21:29 +02:00
parent fa7d917d0d
commit ffb809bbca
8 changed files with 11 additions and 11 deletions

View File

@@ -318,7 +318,7 @@ module.exports = class TorrentListController {
function findFilesRecursive (paths, cb_) {
if (paths.length > 1) {
let numComplete = 0
let ret = []
const ret = []
paths.forEach(function (path) {
findFilesRecursive([path], function (fileObjs) {
ret.push(...fileObjs)