Skip to content

Commit de5469f

Browse files
author
Kashev Dalmia
committed
Run rewriteRun
1 parent e4c928f commit de5469f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/main/java/com/diffplug/spotless/ForeignExe.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public String confirmVersionAndGetAbsolutePath() throws IOException, Interrupted
112112
throw cantFind("Unable to parse version with /" + versionRegex + "/", cmdVersion);
113113
}
114114
String versionFound = versionMatcher.group(1);
115-
if (!versionFound.equals(VERSION_WILDCARD) && !versionFound.equals(version)) {
115+
if (!VERSION_WILDCARD.equals(versionFound) && !versionFound.equals(version)) {
116116
throw wrongVersion("You specified version " + version + ", but Spotless found " + versionFound, cmdVersion, versionFound);
117117
}
118118
return exeAbsPath;

0 commit comments

Comments
 (0)