Skip to content

Commit

Permalink
[libbeat] fix a small linting issue (elastic#39726)
Browse files Browse the repository at this point in the history
The linter complains of an `errcheck`.
  • Loading branch information
VihasMakwana authored Jun 5, 2024
1 parent 351d3e6 commit adb0fb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/monitoring/report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func collectSubObject(cfg *conf.C) *conf.C {
for _, field := range cfg.GetFields() {
if obj, err := cfg.Child(field, -1); err == nil {
// on error field is no object, but primitive value -> ignore
out.SetChild(field, -1, obj)
out.SetChild(field, -1, obj) //nolint:errcheck // this error is safe to ignore
continue
}
}
Expand Down

0 comments on commit adb0fb5

Please sign in to comment.