diff --git a/lib/rules/block-indentation.js b/lib/rules/block-indentation.js index da6def14c..59ac80e00 100644 --- a/lib/rules/block-indentation.js +++ b/lib/rules/block-indentation.js @@ -280,7 +280,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) { fixedNode = this.fixLine( this.sourceEdited.split('\n'),