Skip to content

Commit

Permalink
Only one require needed for all namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
logseq-cldwalker committed Jun 2, 2023
1 parent f37814b commit 2e29e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logseq/graph_validator.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
(reset! state/config config)
(when (seq add-namespaces)
(classpath/add-classpath (path/join dir ".graph-validator")))
(-> (p/all (map #(require (symbol %)) add-namespaces))
(-> (p/do! (apply require (map symbol add-namespaces)))
(p/then
(fn [_promise-results]
(when (seq exclude)
Expand Down

0 comments on commit 2e29e13

Please sign in to comment.