From 0f3d82b846fb70835a059542405e849a59fa2e0a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 10 Jan 2015 16:03:28 -0800 Subject: Removed an unnecessary variable from cloneUnmatchedBlocks. --- js/lib/blocks.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'js/lib') diff --git a/js/lib/blocks.js b/js/lib/blocks.js index e2b4033..05de246 100644 --- 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: -- cgit v1.2.3