Merge pull request #2820 from Razaloc/fu2776

kargs: Simplify conditional statements
This commit is contained in:
Jonathan Lebon 2021-05-10 11:46:09 -04:00 committed by GitHub
commit 18a00f2825
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}