fix lint no-fallthrough

This commit is contained in:
Johann150 2022-07-04 16:05:41 +02:00
parent f14d5886f2
commit 0b9c961707
No known key found for this signature in database
GPG Key ID: 9EE6577A2A06F8F1

View File

@ -116,8 +116,11 @@ function get() {
let base = parseInt(after.value);
switch (unit.value) {
case 'day': base *= 24;
// fallthrough
case 'hour': base *= 60;
// fallthrough
case 'minute': base *= 60;
// fallthrough
case 'second': return base *= 1000;
default: return null;
}