Fix type errors

This commit is contained in:
Mathias Rasmussen
2019-10-07 21:43:38 +02:00
parent 3fbf33b8ae
commit e71555e664
9 changed files with 10 additions and 15 deletions

View File

@@ -74,7 +74,7 @@ function getLargestFileByExtension (torrent, extensions) {
* Filter file on a list extension, can be used to find al image files
* @param torrent Torrent to filter files from
* @param extensions File extensions to filter on
* @returns {number} Array of torrent file objects matching one of the given extensions
* @returns {Array} Array of torrent file objects matching one of the given extensions
*/
function filterOnExtension (torrent, extensions) {
return torrent.files.filter(file => {