Polish "Use Assert.state() with Supplier where possible"
Closes gh-10658
This commit is contained in:
@@ -93,8 +93,8 @@ public final class CommandLineInvoker {
|
||||
}
|
||||
File bin = new File(unpacked.listFiles()[0], "bin");
|
||||
File launchScript = new File(bin, isWindows() ? "spring.bat" : "spring");
|
||||
Assert.state(launchScript.exists() && launchScript.isFile(),
|
||||
() -> "Could not find CLI launch script " + launchScript.getAbsolutePath());
|
||||
Assert.state(launchScript.exists() && launchScript.isFile(), () ->
|
||||
"Could not find CLI launch script " + launchScript.getAbsolutePath());
|
||||
return launchScript;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user