Skip to content

Commit 176b7d2

Browse files
committed
cleanup: remove CheckOnly from UpdateParams
1 parent eff4920 commit 176b7d2

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

internal/ota/ota.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,6 @@ func (s *State) doUpdate(ctx context.Context, params UpdateParams) error {
141141
return fmt.Errorf("no components to update")
142142
}
143143

144-
if !params.CheckOnly {
145-
s.updating = true
146-
s.triggerStateUpdate()
147-
}
148-
149144
appUpdate, systemUpdate, err := s.getUpdateStatus(ctx, params)
150145
if err != nil {
151146
s.updating = false
@@ -155,12 +150,6 @@ func (s *State) doUpdate(ctx context.Context, params UpdateParams) error {
155150
s.metadataFetchedAt = time.Now()
156151
s.triggerStateUpdate()
157152

158-
if params.CheckOnly {
159-
s.updating = false
160-
s.triggerStateUpdate()
161-
return nil
162-
}
163-
164153
if shouldUpdateApp && appUpdate.available {
165154
appUpdate.pending = true
166155
s.triggerComponentUpdateState("app", appUpdate)
@@ -227,7 +216,6 @@ type UpdateParams struct {
227216
DeviceID string `json:"deviceID"`
228217
Components map[string]string `json:"components"`
229218
IncludePreRelease bool `json:"includePreRelease"`
230-
CheckOnly bool `json:"checkOnly"`
231219
ResetConfig bool `json:"resetConfig"`
232220
}
233221

0 commit comments

Comments
 (0)