Skip to content

Commit

Permalink
filebeat/generator/fields: fix dropped error
Browse files Browse the repository at this point in the history
  • Loading branch information
alrs committed Jan 26, 2022
1 parent 53c7c51 commit b028538
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions filebeat/generator/fields/fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,5 @@ func (p *pipeline) toFieldsYml(noDoc bool) ([]byte, error) {
}

f := generateFields(fs, noDoc)
var d []byte
d, err = yaml.Marshal(&f)

return d, nil
return yaml.Marshal(&f)
}

0 comments on commit b028538

Please sign in to comment.