Skip to content

Commit 4a1975a

Browse files
committed
fix lint
1 parent fb271b1 commit 4a1975a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

deps/db/src/logseq/db/common/entity_plus.cljc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
[cljs.core]
1010
[clojure.data :as data]
1111
[datascript.core :as d]
12-
[datascript.db :as db]
1312
[datascript.impl.entity :as de]
1413
[datascript.impl.entity :as entity :refer [Entity]]
1514
[logseq.common.util.date-time :as date-time-util]
@@ -77,10 +76,10 @@
7776
(d/entity db eid)))
7877

7978
(defn unsafe->Entity
80-
"Faster verison of d/entity without checking e exists.
79+
"Faster version of d/entity without checking e exists.
8180
Only use it in performance-critical areas and where the existence of 'e' is confirmed."
8281
[db e]
83-
{:pre [(db/db? db) (pos-int? e)]}
82+
{:pre [(pos-int? e)]}
8483
(de/->Entity db e (volatile! false) (volatile! {})))
8584

8685
(defn db-based-graph?

0 commit comments

Comments
 (0)