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:
Richard Hughes 2022-06-01 14:07:43 +01:00
parent 5ef0ae182d
commit f14e4f8b8d

View File

@ -610,7 +610,6 @@ fu_progress_finished(FuProgress *self)
FuProgressPrivate *priv = GET_PRIVATE(self);
g_return_if_fail(FU_IS_PROGRESS(self));
g_return_if_fail(priv->id != NULL);
/* is already at 100%? */
if (priv->step_now == priv->step_max)