Commit 1d6d6d5228

Andrew Kelley <andrew@ziglang.org>
2019-09-22 21:58:57
remove redundant assert
1 parent 12b195f
Changed files (1)
src/buffer.cpp
@@ -61,7 +61,6 @@ void buf_appendf(Buf *buf, const char *format, ...) {
 
 // these functions are not static inline so they can be better used as template parameters
 bool buf_eql_buf(Buf *buf, Buf *other) {
-    assert(buf->list.length);
     return buf_eql_mem(buf, buf_ptr(other), buf_len(other));
 }