Skip to content

Commit

Permalink
assert sexpr count without actually creating them.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick Scherer committed Jan 16, 2015
1 parent 9581fb2 commit 9fb553d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rewrite_clj/node/protocols.clj
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
(defn ^:no-doc assert-sexpr-count
[nodes c]
(assert
(= (count (sexprs nodes)) c)
(= (count (remove printable-only? nodes)) c)
(format "can only contain %d non-whitespace form%s."
c (if (= c 1) "" "s"))))

Expand Down

0 comments on commit 9fb553d

Please sign in to comment.