From 7c79b3e514b9f1ecf4528d31bf85602a5efe0064 Mon Sep 17 00:00:00 2001 From: Siyuan Date: Tue, 18 Nov 2025 13:37:04 +0000 Subject: [PATCH] chore: remove redundant s.updating = false assignment, as it's already set in the componentUpdateError function --- internal/ota/ota.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/ota/ota.go b/internal/ota/ota.go index 35818067..639e5f91 100644 --- a/internal/ota/ota.go +++ b/internal/ota/ota.go @@ -181,7 +181,6 @@ func (s *State) doUpdate(ctx context.Context, params UpdateParams) error { appUpdate, systemUpdate, err := s.getUpdateStatus(ctx, params) if err != nil { - s.updating = false return s.componentUpdateError("Error checking for updates", err, &scopedLogger) }