mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 18:23:08 +02:00
fix lint no-fallthrough
This commit is contained in:
parent
f14d5886f2
commit
0b9c961707
1 changed files with 3 additions and 0 deletions
|
@ -116,8 +116,11 @@ function get() {
|
||||||
let base = parseInt(after.value);
|
let base = parseInt(after.value);
|
||||||
switch (unit.value) {
|
switch (unit.value) {
|
||||||
case 'day': base *= 24;
|
case 'day': base *= 24;
|
||||||
|
// fallthrough
|
||||||
case 'hour': base *= 60;
|
case 'hour': base *= 60;
|
||||||
|
// fallthrough
|
||||||
case 'minute': base *= 60;
|
case 'minute': base *= 60;
|
||||||
|
// fallthrough
|
||||||
case 'second': return base *= 1000;
|
case 'second': return base *= 1000;
|
||||||
default: return null;
|
default: return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue