Browse Source

fix: lint

Tienson Qin 8 months ago
parent
commit
fa6bccd1e7

+ 3 - 3
deps/outliner/src/logseq/outliner/property.cljs

@@ -280,12 +280,12 @@
     ;; only value-ref-property types should call this
     (find-or-create-property-value conn property-id v)))
 
-(defn throw-error-if-self-value
+(defn- throw-error-if-self-value
   [block value ref?]
   (when (and ref? (= value (:db/id block)))
-    (throw (ex-info "Can't set this block ifself as own property value"
+    (throw (ex-info "Can't set this block itself as own property value"
                     {:type :notification
-                     :payload {:message "Can't set this block ifself as own property value"
+                     :payload {:message "Can't set this block itself as own property value"
                                :type :error}}))))
 
 (defn set-block-property!

+ 0 - 1
src/main/frontend/handler/paste.cljs

@@ -18,7 +18,6 @@
             [lambdaisland.glogi :as log]
             [logseq.common.util :as common-util]
             [logseq.common.util.block-ref :as block-ref]
-            [logseq.db :as ldb]
             [logseq.db.frontend.content :as db-content]
             [logseq.graph-parser.block :as gp-block]
             [promesa.core :as p]))