Skip to content

Commit

Permalink
Merge pull request #232 from noborus/fix-err-catch
Browse files Browse the repository at this point in the history
Fixed missing error catch
  • Loading branch information
noborus authored Aug 27, 2023
2 parents f87cff4 + 024aff0 commit 9363368
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion input_yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ func NewYAMLReader(reader io.Reader, opts *ReadOpts) (*YAMLReader, error) {
r.reader = yaml.NewDecoder(reader)
r.already = make(map[string]bool)

r.yamlParse(opts)
if err := r.yamlParse(opts); err != nil {
return nil, err
}

return r, nil
}
Expand Down

0 comments on commit 9363368

Please sign in to comment.