Skip to content
This repository was archived by the owner on Apr 10, 2021. It is now read-only.

Commit 83602c6

Browse files
committed
Always flush style changes
1 parent 83a5766 commit 83602c6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/com/welovecoding/nbeditorconfig/processor/EditorConfigProcessor.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,8 @@ public synchronized void applyRulesToFile(DataObject dataObject) {
9595
FileInfo info = excuteOperations(dataObject, config);
9696

9797
// Apply EditorConfig operations
98-
if (info.isStyleFlushNeeded()) {
99-
LOG.log(Level.INFO, "Flush style changes for: {0}", filePath);
100-
flushStyles(info);
101-
}
98+
LOG.log(Level.INFO, "Flush style changes for: {0}", filePath);
99+
flushStyles(info);
102100

103101
if (info.isFileChangeNeeded()) {
104102
LOG.log(Level.INFO, "Flush file changes for: {0}", filePath);

0 commit comments

Comments
 (0)