From b627c1073747ecdab225d7454855aa44c47dc453 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 3 Jul 2025 10:50:09 +0200 Subject: [PATCH] :fire: Remove duplicated check-fn --- common/src/app/common/types/path/impl.cljc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/src/app/common/types/path/impl.cljc b/common/src/app/common/types/path/impl.cljc index ff7d60520f..5ec185f1a4 100644 --- a/common/src/app/common/types/path/impl.cljc +++ b/common/src/app/common/types/path/impl.cljc @@ -546,9 +546,6 @@ (def check-segment (sm/check-fn schema:segment)) -(def ^:private check-segments - (sm/check-fn schema:segments)) - (def check-content (sm/check-fn schema:content)) @@ -611,7 +608,7 @@ (defn from-plain "Create a PathData instance from plain data structures" [segments] - (assert (check-segments segments)) + (assert (check-plain-content segments)) (let [total (count segments) buffer (buf/allocate (* total SEGMENT-BYTE-SIZE))]