Skip to content

Commit

Permalink
fix: no need for the :else keyword in case
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Sep 14, 2022
1 parent 2054270 commit 17fe49d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/frontend/components/right_sidebar.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
(case (.-code e)
"ArrowLeft" (- keyboard-step)
"ArrowRight" keyboard-step
:else 0))
0))
ratio (.toFixed (/ offset width) 6)
ratio (if (= handler-position :west) (- 1 ratio) ratio)]
(when (and (> ratio min-ratio) (< ratio max-ratio)) (set-width! ratio sidebar-el))))))))
Expand Down

0 comments on commit 17fe49d

Please sign in to comment.