From 80826e58ad1e47983153a3dac67f77b96e3acae7 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 25 Aug 2023 11:04:34 +0200 Subject: [PATCH] :zap: Add missing boolean type hints --- common/src/app/common/types/shape_tree.cljc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/src/app/common/types/shape_tree.cljc b/common/src/app/common/types/shape_tree.cljc index 1e9d449a59..8378bc3f71 100644 --- a/common/src/app/common/types/shape_tree.cljc +++ b/common/src/app/common/types/shape_tree.cljc @@ -200,11 +200,13 @@ (cond ;; The base the base shape, so the other item is below (if not bottom-frames) (= base-id base-shape-id) - (and bottom-frames? (cph/frame-shape? objects base-id)) + (and ^boolean bottom-frames? + ^boolean (cph/frame-shape? objects base-id)) ;; The base is the testing over, so it's over (if not bottom-frames) (= base-id over-shape-id) - (or (not bottom-frames?) (not (cph/frame-shape? objects base-id))) + (or (not ^boolean bottom-frames?) + (not ^boolean (cph/frame-shape? objects base-id))) ;; Check which index is lower :else