🎨 Some eslint fixes

This commit is contained in:
Androz2091 2020-06-21 17:17:43 +02:00
parent bbfe529177
commit 872c335b55

View file

@ -64,14 +64,14 @@ class Track {
get durationMS () { get durationMS () {
const args = this.duration.split(':') const args = this.duration.split(':')
if (args.length === 3) { if (args.length === 3) {
return parseInt(args[0]) * 60 * 60 * 1000 return parseInt(args[0]) * 60 * 60 * 1000 +
+ parseInt(args[1]) * 60 * 1000 parseInt(args[1]) * 60 * 1000 +
+ parseInt(args[2]) * 1000 parseInt(args[2]) * 1000
} else if(args.length === 2) { } else if (args.length === 2) {
return parseInt(args[0]) * 60 * 1000 return parseInt(args[0]) * 60 * 1000 +
+ parseInt(args[1]) * 1000 parseInt(args[1]) * 1000
} else { } else {
return parseInt(args[0]) * 1000 return parseInt(args[0]) * 1000
} }
} }
} }