Skip to content

Commit b22f54f

Browse files
committed
fix condition to only evaluate IndexBasedChecker when necessary
1 parent b7b17a9 commit b22f54f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugin-maven/src/main/java/com/diffplug/spotless/maven/incremental/UpToDateChecker.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ public void setUpToDate(Path file) {
4949

5050
@Override
5151
public boolean isUpToDate(Path file) {
52-
return !buildContext.hasDelta(file.toFile()) && delegate.isUpToDate(file);
52+
if (buildContext.hasDelta(file)) {
53+
return delegate.isUpToDate(file);
54+
}
55+
return true;
5356
}
5457

5558
@Override

0 commit comments

Comments
 (0)