File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments