Skip to content

Commit 2efb46a

Browse files
authored
chore: remove superfluous context.Canceled handling (#13140)
Removes a check for `context.Canceled` inside the `handleManifest` routine. This checking is handled in the `apiConnRoutineManager`, so checking inside the handler is redundant.
1 parent 7c3ec51 commit 2efb46a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

agent/agent.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -903,9 +903,6 @@ func (a *agent) handleManifest(manifestOK chan<- struct{}) func(ctx context.Cont
903903
Subsystems: subsys,
904904
}})
905905
if err != nil {
906-
if xerrors.Is(err, context.Canceled) {
907-
return nil
908-
}
909906
return xerrors.Errorf("update workspace agent startup: %w", err)
910907
}
911908

0 commit comments

Comments
 (0)