mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-27 12:54:58 +00:00
trivial: Do not require an ID to finish a progress object
The function might have returned (possibly with an error set) before fu_progress_set_id() was called.
This commit is contained in:
parent
5ef0ae182d
commit
f14e4f8b8d
@ -610,7 +610,6 @@ fu_progress_finished(FuProgress *self)
|
|||||||
FuProgressPrivate *priv = GET_PRIVATE(self);
|
FuProgressPrivate *priv = GET_PRIVATE(self);
|
||||||
|
|
||||||
g_return_if_fail(FU_IS_PROGRESS(self));
|
g_return_if_fail(FU_IS_PROGRESS(self));
|
||||||
g_return_if_fail(priv->id != NULL);
|
|
||||||
|
|
||||||
/* is already at 100%? */
|
/* is already at 100%? */
|
||||||
if (priv->step_now == priv->step_max)
|
if (priv->step_now == priv->step_max)
|
||||||
|
Loading…
Reference in New Issue
Block a user