mirror of
https://github.com/systemd/systemd.git
synced 2024-10-27 10:25:37 +03:00
manager: minor manager_get_show_status() simplification
Since the the whole function ultimately is just a fancy getter for the show_status field, let's actually return it as last step literally without an extra needless "if".
This commit is contained in:
parent
5a69973ff2
commit
46fb617bf9
@ -3548,10 +3548,7 @@ static bool manager_get_show_status(Manager *m, StatusType type) {
|
||||
if (type != STATUS_TYPE_EMERGENCY && manager_check_ask_password(m) > 0)
|
||||
return false;
|
||||
|
||||
if (m->show_status > 0)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return m->show_status > 0;
|
||||
}
|
||||
|
||||
const char *manager_get_confirm_spawn(Manager *m) {
|
||||
|
Loading…
Reference in New Issue
Block a user