Skip to content

Commit

Permalink
cleaner java code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
nmschulte committed Mar 9, 2024
1 parent 94e3fa1 commit a247c06
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,13 @@ private static File getSimulatorBinary() {
public static File getSimulatorBinary(String binaryPath) {
File binary = new File(binaryPath);

if (!binary.exists()) // try also for Windows/PE executable
if (!binary.exists()) { // try also for Windows/PE executable
binary = new File(binaryPath + ".exe");
}

if (!binary.exists() || binary.isDirectory() || !binary.canExecute())
if (!binary.exists() || binary.isDirectory() || !binary.canExecute()) {
throw new IllegalStateException("FOME Simulator program not found");
}

return binary;
}
Expand Down

0 comments on commit a247c06

Please sign in to comment.