- Commit
- 94fe2650b080b9511d7fbe7f64c02326e90d319a
- Parent
- c2e76eae80bb635557ff87e36334cc5ce67e10dc
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Minor code cleanup.
My personal build of CMark ✏️
Minor code cleanup.
1 file changed, 1 insertion, 4 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | js/lib/blocks.js | 5 | 1 | 4 |
diff --git a/js/lib/blocks.js b/js/lib/blocks.js @@ -257,10 +257,7 @@ var incorporateLine = function(ln) { // Bail out on failure: container will point to the last matching block. // Set all_matched to false if not all containers match. var lastChild; - while ((lastChild = container._lastChild)) { - if (!lastChild._open) { - break; - } + while ((lastChild = container._lastChild) && lastChild._open) { container = lastChild; match = matchAt(reNonSpace, ln, offset);