From f14e4f8b8daab97eb0acad1291fe18948d895869 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 1 Jun 2022 14:07:43 +0100 Subject: [PATCH] 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. --- libfwupdplugin/fu-progress.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libfwupdplugin/fu-progress.c b/libfwupdplugin/fu-progress.c index 2840316b3..37c302b5c 100644 --- a/libfwupdplugin/fu-progress.c +++ b/libfwupdplugin/fu-progress.c @@ -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)