Skip to content

Commit 9fb553d

Browse files
author
Yannick Scherer
committed
assert sexpr count without actually creating them.
1 parent 9581fb2 commit 9fb553d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rewrite_clj/node/protocols.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
(defn ^:no-doc assert-sexpr-count
102102
[nodes c]
103103
(assert
104-
(= (count (sexprs nodes)) c)
104+
(= (count (remove printable-only? nodes)) c)
105105
(format "can only contain %d non-whitespace form%s."
106106
c (if (= c 1) "" "s"))))
107107

0 commit comments

Comments
 (0)