diff options
| author | Johann150 <johann.galle@protonmail.com> | 2022-07-04 16:05:41 +0200 |
|---|---|---|
| committer | Johann150 <johann.galle@protonmail.com> | 2022-07-04 16:05:41 +0200 |
| commit | 0b9c96170712416743596c183f3c6a6ff4d0a464 (patch) | |
| tree | c7a00400b410588e53c6142099085a6ad3b33a49 /packages/client/src/components | |
| parent | fix lint padded-blocks (diff) | |
| download | misskey-0b9c96170712416743596c183f3c6a6ff4d0a464.tar.gz misskey-0b9c96170712416743596c183f3c6a6ff4d0a464.tar.bz2 misskey-0b9c96170712416743596c183f3c6a6ff4d0a464.zip | |
fix lint no-fallthrough
Diffstat (limited to 'packages/client/src/components')
| -rw-r--r-- | packages/client/src/components/poll-editor.vue | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/client/src/components/poll-editor.vue b/packages/client/src/components/poll-editor.vue index d2b88f6bfc..a068aca79e 100644 --- a/packages/client/src/components/poll-editor.vue +++ b/packages/client/src/components/poll-editor.vue @@ -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; } |