Skip to content

Commit

Permalink
chore: review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Molinié committed Dec 24, 2021
1 parent 0e20e0c commit 07244d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rules/block-indentation.js
Expand Up @@ -276,7 +276,7 @@ module.exports = class BlockIndentation extends Rule {
}
}

// Process all the child with the path to access the child from the current node
// Recreate the node only if the source has changed, otherwise this would mean useless computation and possible mistake
if (sourceBeforeFix !== this.sourceEdited && this.sourceEdited) {
fixedNode = this.fixLine(
this.sourceEdited.split('\n'),
Expand Down
2 changes: 1 addition & 1 deletion test/unit/rules/block-indentation-test.js
Expand Up @@ -227,7 +227,7 @@ generateRuleTests({
'{{/if}}',
].join('\n'),
},
].filter((value, index) => index >= 0),
],

bad: [
{
Expand Down

0 comments on commit 07244d3

Please sign in to comment.