From 179bc67ed3ce50034a2ba424c2455fffc815fa26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Molini=C3=A9?= Date: Fri, 24 Dec 2021 14:23:51 +0100 Subject: [PATCH] chore: review fixes --- lib/rules/block-indentation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'),