Skip to content

Commit 4480ea3

Browse files
committed
fix shadow-cljs warning
1 parent 7da2a7b commit 4480ea3

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

project.clj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,11 @@
9797
"release-js/datascript.bare.js"
9898
"release-js/datascript.js"
9999
]
100+
101+
:deploy-repositories
102+
{"clojars"
103+
{:url "https://clojars.org/repo"
104+
:username "tonsky"
105+
:password :env/clojars_token_datascript
106+
:sign-releases false}}
100107
)

src/datascript/db.cljc

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,14 @@
9999
[then else]
100100
(if (cljs-env? &env) then else)))
101101

102-
(defn patch-tag [meta cljs-env?]
103-
(if cljs-env?
104-
meta
105-
(condp = (:tag meta)
106-
'boolean (assoc meta :tag java.lang.Boolean)
107-
'number (assoc meta :tag clojure.core$long)
108-
meta)))
102+
#?(:clj
103+
(defn patch-tag [meta cljs-env?]
104+
(if cljs-env?
105+
meta
106+
(condp = (:tag meta)
107+
'boolean (assoc meta :tag java.lang.Boolean)
108+
'number (assoc meta :tag clojure.core$long)
109+
meta))))
109110

110111
#?(:clj
111112
(defmacro declare+

0 commit comments

Comments
 (0)