From 6524e75770558b586ab6ea20b4612983ad6497f1 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 15 May 2025 08:58:15 +0200 Subject: [PATCH] :lipstick: Fix check-fn naming on types.container --- common/src/app/common/types/container.cljc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/common/src/app/common/types/container.cljc b/common/src/app/common/types/container.cljc index bfb6d09e2e..bab2105f59 100644 --- a/common/src/app/common/types/container.cljc +++ b/common/src/app/common/types/container.cljc @@ -41,7 +41,7 @@ [:map-of {:gen/max 10} ::sm/uuid :map]] [:plugin-data {:optional true} ::ctpg/plugin-data]]) -(def check-container! +(def check-container (sm/check-fn ::container)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -74,13 +74,9 @@ (defn get-shape [container shape-id] - (dm/assert! - "expected valid container" - (check-container! container)) - - (dm/assert! - "expected valid uuid for `shape-id`" - (uuid? shape-id)) + (assert (check-container container)) + (assert (uuid? shape-id) + "expected valid uuid for `shape-id`") (-> container (get :objects)