Skip to content

Commit

Permalink
Fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Rebhan committed Feb 3, 2021
1 parent b6fe8b6 commit 08b4dce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/running_parsers.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (r *RunningParser) GetParserFunc() telegraf.ParserFunc {
if p, ok := r.Parser.(telegraf.StatefulParser); ok {
return p.NewInstance
}
return func()(telegraf.Parser, error) { return r.Parser, nil }
return func() (telegraf.Parser, error) { return r.Parser, nil }
}

func (r *RunningParser) Log() telegraf.Logger {
Expand Down
2 changes: 1 addition & 1 deletion plugins/inputs/tail/tail.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ func parseLine(parser telegraf.Parser, line string, lineno int) ([]telegraf.Metr

// Parse the header information. No metric to return though.
nHeader := p.GetHeaderLineCount()
if lineno < nSkip + nHeader {
if lineno < nSkip+nHeader {
err := p.ParseHeaderLine(line)
return nil, err
}
Expand Down

0 comments on commit 08b4dce

Please sign in to comment.