Skip to content

Commit 704314c

Browse files
committed
Fix protocol? function
Some maps raise an exception on just calling the keyword. Use contains? instead.
1 parent 38f7e31 commit 704314c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codox/src/codox/reader/clojure.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
(let [value (var-get var)]
4848
(and (map? value)
4949
(not (sorted? value)) ; workaround for CLJ-1242
50-
(:on-interface value))))
50+
(contains? value :on-interface))))
5151

5252
(defn- protocol-method? [vars var]
5353
(if-let [p (:protocol (meta var))]

0 commit comments

Comments
 (0)