mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-05 14:01:06 +00:00
trivial: Remove a condition that can never be non-valid
PVS: A part of conditional expression is always true: priv->children->len > 0.
This commit is contained in:
parent
72f6cc5a0a
commit
5014c87a2a
@ -636,7 +636,7 @@ fu_progress_child_percentage_changed_cb(FuProgress *child, guint percentage, FuP
|
||||
}
|
||||
|
||||
/* if the child finished, set the status back to the last parent status */
|
||||
if (percentage == 100 && priv->children->len > 0) {
|
||||
if (percentage == 100) {
|
||||
FuProgress *child_tmp = g_ptr_array_index(priv->children, priv->step_now);
|
||||
if (fu_progress_get_status(child_tmp) != FWUPD_STATUS_UNKNOWN)
|
||||
fu_progress_set_status(self, fu_progress_get_status(child_tmp));
|
||||
|
Loading…
Reference in New Issue
Block a user