Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ksqsf authored and logseq-cldwalker committed Dec 4, 2023
1 parent ef60c92 commit bfe7f5e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/frontend/db/query_dsl.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ Some bindings in this fn:
(string/replace tag-placeholder "#")))))

(defn- add-bindings!
[form q]
[q]
(let [forms (set (flatten q))
syms ['?b '?p 'not]
[b? p? not?] (-> (set/intersection (set syms) forms)
Expand Down Expand Up @@ -539,8 +539,7 @@ Some bindings in this fn:
;; [(not (page-ref ?b "page 2"))]
(keyword (ffirst result))
(keyword (first result)))]
(add-bindings! form
(if (= key :and) (rest result) result))))]
(add-bindings! (if (= key :and) (rest result) result))))]
{:query result'
:rules (mapv rules/query-dsl-rules rules)
:sort-by @sort-by
Expand Down

0 comments on commit bfe7f5e

Please sign in to comment.