cmark

My personal build of CMark ✏️

Commit
0f3d82b846fb70835a059542405e849a59fa2e0a
Parent
a6b67959d4dbe1161ac38684258ac409ed4ead01
Author
John MacFarlane <jgm@berkeley.edu>
Date

Removed an unnecessary variable from cloneUnmatchedBlocks.

Diffstat

1 file changed, 1 insertion, 3 deletions

Status File Name N° Changes Insertions Deletions
Modified js/lib/blocks.js 4 1 3
diff --git a/js/lib/blocks.js b/js/lib/blocks.js
@@ -350,13 +350,11 @@ var incorporateLine = function(ln, line_number) {
     // want to close unmatched blocks.  So we store this closure for
     // use later, when we have more information.
     var closeUnmatchedBlocks = function(mythis) {
-        var already_done = false;
         // finalize any blocks not matched
-        while (!already_done && oldtip !== last_matched_container) {
+        while (oldtip !== last_matched_container) {
             mythis.finalize(oldtip, line_number - 1);
             oldtip = oldtip.parent;
         }
-        already_done = true;
     };
 
     // Check to see if we've hit 2nd blank line; if so break out of list: