Skip to content

Commit 4562d2c

Browse files
committed
direct-linking fix: remove two more (declare+ ...) in JVM Clojure
1 parent adea735 commit 4562d2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/datascript/db.cljc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@
409409
#?(:clj (. clojure.lang.Util (hasheq x))
410410
:cljs (hash x)))
411411

412-
(declare+ ^number value-compare [x y])
412+
#?(:cljs (declare+ ^number value-compare [x y]) :clj (declare value-compare))
413413

414414
(defn- seq-compare [xs ys]
415415
(let [cx (count xs)
@@ -1619,7 +1619,7 @@
16191619
(filter (fn [^Datom d] (component? db (.-a d))))
16201620
(map (fn [^Datom d] [:db.fn/retractEntity (.-v d)]))) datoms))
16211621

1622-
(declare+ transact-tx-data-impl [initial-report initial-es])
1622+
#?(:cljs (declare+ transact-tx-data-impl [initial-report initial-es]) :clj (declare transact-tx-data-impl))
16231623

16241624
(defn- retry-with-tempid [initial-report report es tempid upserted-eid]
16251625
(if-some [eid (get (::upserted-tempids initial-report) tempid)]
@@ -1923,4 +1923,4 @@
19231923
(util/raise "Bad transaction data " es ", expected sequential collection"
19241924
{:error :transact/syntax, :tx-data es}))
19251925
(let [es' (assoc-auto-tempids (:db-before report) es)]
1926-
(transact-tx-data-impl report es')))
1926+
(transact-tx-data-impl report es')))

0 commit comments

Comments
 (0)