Merge pull request #2820 from Razaloc/fu2776
kargs: Simplify conditional statements
This commit is contained in:
commit
18a00f2825
@ -358,17 +358,10 @@ rpmostree_builtin_kargs (int argc,
|
||||
error))
|
||||
return FALSE;
|
||||
|
||||
if (opt_unchanged_exit_77)
|
||||
{
|
||||
if (!rpmostree_has_new_default_deployment (os_proxy, previous_deployment))
|
||||
{
|
||||
invocation->exit_code = RPM_OSTREE_EXIT_UNCHANGED;
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
if (rpmostree_has_new_default_deployment (os_proxy, previous_deployment))
|
||||
g_print("Kernel arguments updated.\nRun \"systemctl reboot\" to start a reboot\n");
|
||||
else if (opt_unchanged_exit_77)
|
||||
invocation->exit_code = RPM_OSTREE_EXIT_UNCHANGED;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user