Skip to content

Commit

Permalink
fix(utils/lyrics): format
Browse files Browse the repository at this point in the history
  • Loading branch information
memorydream authored Jan 28, 2022
1 parent 769ba47 commit c8b9c0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/lyrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ function parseLyric(lrc) {
for (const timestamp of lyricTimestamps.matchAll(extractTimestampRegex)) {
const { min, sec, ms } = timestamp.groups;
const rawTime = timestamp[0];
const time =
Number(min) * 60 + Number(sec) + Number(ms ?? 0) * 0.001;
const time = Number(min) * 60 + Number(sec) + Number(ms ?? 0) * 0.001;

/** @type {ParsedLyric} */
const parsedLyric = { rawTime, time, content: trimContent(content) };
Expand Down

0 comments on commit c8b9c0d

Please sign in to comment.