Use "else if" to remove one level of indentation.
This commit is contained in:
parent
f130caa4a2
commit
b8dbec0da4
|
@ -72,8 +72,7 @@ class Upgrade extends Command {
|
||||||
|
|
||||||
$updater->upgrade();
|
$updater->upgrade();
|
||||||
return self::ERROR_SUCCESS;
|
return self::ERROR_SUCCESS;
|
||||||
} else {
|
} else if(\OC_Config::getValue('maintenance', false)) {
|
||||||
if(\OC_Config::getValue('maintenance', false)) {
|
|
||||||
//Possible scenario: ownCloud core is updated but an app failed
|
//Possible scenario: ownCloud core is updated but an app failed
|
||||||
$output->writeln('ownCloud is in maintenance mode');
|
$output->writeln('ownCloud is in maintenance mode');
|
||||||
$output->write('Maybe an upgrade is already in process. Please check the '
|
$output->write('Maybe an upgrade is already in process. Please check the '
|
||||||
|
@ -88,4 +87,3 @@ class Upgrade extends Command {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue