From 2efb46a10e3368dd5e430ae3121ea2378b2abcd9 Mon Sep 17 00:00:00 2001 From: Spike Curtis Date: Mon, 6 May 2024 14:33:16 +0400 Subject: [PATCH] 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. --- agent/agent.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/agent/agent.go b/agent/agent.go index b6eb60519c..abaaed4c31 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -903,9 +903,6 @@ func (a *agent) handleManifest(manifestOK chan<- struct{}) func(ctx context.Cont Subsystems: subsys, }}) if err != nil { - if xerrors.Is(err, context.Canceled) { - return nil - } return xerrors.Errorf("update workspace agent startup: %w", err) }