summaryrefslogtreecommitdiff
path: root/packages/client/src/components
diff options
context:
space:
mode:
authorJohann150 <johann.galle@protonmail.com>2022-07-04 16:05:41 +0200
committerJohann150 <johann.galle@protonmail.com>2022-07-04 16:05:41 +0200
commit0b9c96170712416743596c183f3c6a6ff4d0a464 (patch)
treec7a00400b410588e53c6142099085a6ad3b33a49 /packages/client/src/components
parentfix lint padded-blocks (diff)
downloadmisskey-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.vue3
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;
}