diff options
author | Michael C <[email protected]> | 2022-10-20 22:13:51 -0400 |
---|---|---|
committer | Michael C <[email protected]> | 2022-10-20 22:13:51 -0400 |
commit | 1fcfea9fd533bbc7d91811c417d9646666f07dd6 (patch) | |
tree | 167ddf1d5a25724b072987af8823cdb2c7a7fd3d /src/utils/urlParser.ts | |
parent | aec5845bced2443dea0bf36affd1aa64df18f36e (diff) | |
download | SponsorBlock-1fcfea9fd533bbc7d91811c417d9646666f07dd6.tar.gz SponsorBlock-1fcfea9fd533bbc7d91811c417d9646666f07dd6.zip |
add noFallThrough, inplicitReturn, update packages
Diffstat (limited to 'src/utils/urlParser.ts')
-rw-r--r-- | src/utils/urlParser.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/urlParser.ts b/src/utils/urlParser.ts index 209c7c51..24f444ba 100644 --- a/src/utils/urlParser.ts +++ b/src/utils/urlParser.ts @@ -22,5 +22,7 @@ export function urlTimeToSeconds(time: string): number { return hours * 3600 + minutes * 60 + seconds; } else if (/\d+/.test(time)) { return parseInt(time, 10); + } else { + return 0; } }
\ No newline at end of file |