From 872c335b5533c5f64741ad478009c40590e9f1cb Mon Sep 17 00:00:00 2001 From: Androz2091 Date: Sun, 21 Jun 2020 17:17:43 +0200 Subject: [PATCH] :art: Some eslint fixes --- src/Track.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Track.js b/src/Track.js index 3dd6efa..d357230 100644 --- a/src/Track.js +++ b/src/Track.js @@ -64,14 +64,14 @@ class Track { get durationMS () { const args = this.duration.split(':') if (args.length === 3) { - return parseInt(args[0]) * 60 * 60 * 1000 - + parseInt(args[1]) * 60 * 1000 - + parseInt(args[2]) * 1000 - } else if(args.length === 2) { - return parseInt(args[0]) * 60 * 1000 - + parseInt(args[1]) * 1000 + return parseInt(args[0]) * 60 * 60 * 1000 + + parseInt(args[1]) * 60 * 1000 + + parseInt(args[2]) * 1000 + } else if (args.length === 2) { + return parseInt(args[0]) * 60 * 1000 + + parseInt(args[1]) * 1000 } else { - return parseInt(args[0]) * 1000 + return parseInt(args[0]) * 1000 } } }