mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
Simplify boolean expressions (#3971)
Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user