From 130728adcd7acd4250a78a4e34b1c2d69c0ca3e1 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Tue, 15 Mar 2022 11:24:35 +0800 Subject: [PATCH] fix: lint warnings --- src/main/frontend/handler/dnd.cljs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/frontend/handler/dnd.cljs b/src/main/frontend/handler/dnd.cljs index c9c2a96e1..518d1dfa2 100644 --- a/src/main/frontend/handler/dnd.cljs +++ b/src/main/frontend/handler/dnd.cljs @@ -27,14 +27,14 @@ (and (= move-to :nested) ;; current block is already the first child of target-block - (and (= (:db/id (:block/left current-block)) - (:db/id (:block/parent current-block)) - (:db/id target-block)))) + (= (:db/id (:block/left current-block)) + (:db/id (:block/parent current-block)) + (:db/id target-block))) (and (= move-to :sibling) ;; current block is already the next sibling of target-block - (and (= (:db/id (:block/left current-block)) - (:db/id target-block)))))))) + (= (:db/id (:block/left current-block)) + (:db/id target-block))))))) (defn move-block "There can be two possible situations: