Skip to content

Commit

Permalink
list? -> seq?
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Oct 7, 2024
1 parent f0bfe02 commit 2fb49c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nextjournal/clerk/viewer.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,7 @@
(.digest hasher))))

(defn validate-viewer! [{:as viewer :keys [render-fn]}]
#?(:clj (when (and render-fn (not (or (list? render-fn)
#?(:clj (when (and render-fn (not (or (seq? render-fn)
(symbol? render-fn))))
(throw (ex-info (str "`:render-fn` must to be a quoted form or symbol, got a "
(if (fn? render-fn) "function" (type render-fn))
Expand Down

0 comments on commit 2fb49c7

Please sign in to comment.