mirror of
https://github.com/nature-of-code/noc-book-2
synced 2024-09-29 05:36:56 +02:00
Merge pull request #913 from nature-of-code/fix/pair-max-lines
[Fix] Check if maxLines is `undefined`
This commit is contained in:
commit
c1379b8ab2
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ Plugin.prototype = {
|
|||
(this.isComment(line) && pair.code.length > 0) ||
|
||||
(!pair.maxLines && currentIndent < pair.indent) ||
|
||||
(!pair.maxLines && line === '' && pair.comment.length > 0) ||
|
||||
(!!pair.maxLines && pair.code.length >= pair.maxLines)
|
||||
(pair.maxLines !== undefined && pair.code.length >= pair.maxLines)
|
||||
) {
|
||||
if (pair.code.length > 0 || pair.comment.length > 0) {
|
||||
pairs.push(pair);
|
||||
|
|
Loading…
Reference in a new issue