app/db-diff: Drop redundant check

By the way `ostree_sysroot_query_deployments_for()` is defined, the
pending deployment is never the same as the booted deployment, so drop
that redundant check.

Closes: #1565
Approved by: cgwalters
This commit is contained in:
Jonathan Lebon 2018-09-19 16:39:06 -04:00 committed by Atomic Bot
parent ca6f32371a
commit b27339f1bd

View File

@ -163,7 +163,7 @@ rpmostree_db_builtin_diff (int argc, char **argv,
new_desc = "pending deployment";
g_autoptr(OstreeDeployment) pending = NULL;
ostree_sysroot_query_deployments_for (sysroot, NULL, &pending, NULL);
if (!pending || ostree_deployment_equal (pending, booted))
if (!pending)
return glnx_throw (error, "No pending deployment to diff against");
if (!get_checksum_from_deployment (repo, pending, &new_checksum, error))
return FALSE;