Simplify boolean expressions (#3971)

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born
2023-12-28 13:19:01 +01:00
committed by GitHub
parent ba5647b871
commit f376606e92
11 changed files with 12 additions and 14 deletions
@@ -71,7 +71,7 @@ public class UpgradeTool {
"Please either set the environment variable ${OPENHAB_USERDATA} or provide a directory through the --dir option.");
System.exit(0);
} else {
boolean force = commandLine.hasOption(OPT_FORCE) ? true : false;
boolean force = commandLine.hasOption(OPT_FORCE);
Upgrader upgrader = new Upgrader(baseDir, force);
if (!commandLine.hasOption(OPT_COMMAND)