From 8102e545e2413a4f79eeee4eda0f2c5352acfcbd Mon Sep 17 00:00:00 2001 From: Blake Rouse Date: Mon, 18 Dec 2023 14:28:55 -0500 Subject: [PATCH] Fix windows lint. --- x-pack/libbeat/management/managerV2.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/x-pack/libbeat/management/managerV2.go b/x-pack/libbeat/management/managerV2.go index 84ed6e95b23..235325c0cbf 100644 --- a/x-pack/libbeat/management/managerV2.go +++ b/x-pack/libbeat/management/managerV2.go @@ -35,8 +35,6 @@ import ( "github.com/elastic/beats/v7/libbeat/version" ) -var errStoppingOnOutputChange = errors.New("stopping Beat on output change") - // diagnosticHandler is a wrapper type that's a bit of a hack, the compiler won't let us send the raw unit struct, // since there's a type disagreement with the `client.DiagnosticHook` argument, and due to licensing issues we can't import the agent client types into the reloader type diagnosticHandler struct { @@ -557,7 +555,7 @@ func (cm *BeatV2Manager) reload(units map[unitKey]*client.Unit) { for _, unit := range units { errs := unitErrors[unit.ID()] if len(errs) != 0 { - unit.UpdateState(client.UnitStateFailed, errors.Join(errs...).Error(), nil) + _ = unit.UpdateState(client.UnitStateFailed, errors.Join(errs...).Error(), nil) } } }()