Skip to content

Commit

Permalink
Remove assert
Browse files Browse the repository at this point in the history
  • Loading branch information
thetarnav committed Feb 19, 2024
1 parent 09fe31a commit 0484811
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions md_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ export function end(s) {
* @param {Stream} s
* @returns {void } */
function flush(s) {
console.assert(
s.tokens_len >= 0,
"nodes_len should never below 0",
)
if (s.txt.length > 0) {
s.tokens_elem[s.tokens_len].appendChild(document.createTextNode(s.txt))
s.txt = ""
Expand Down

0 comments on commit 0484811

Please sign in to comment.