Skip to content

Commit

Permalink
Fix windows lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakerouse committed Dec 18, 2023
1 parent f63c67d commit 8102e54
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions x-pack/libbeat/management/managerV2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
}
}
}()
Expand Down

0 comments on commit 8102e54

Please sign in to comment.