Skip to content

Commit

Permalink
fix: remove unnecessary init
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Spaink committed Jun 30, 2022
1 parent f846ef0 commit 7fa0579
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions plugins/parsers/nagios/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,6 @@ func parseThreshold(threshold string) (min float64, max float64, err error) {
return min, max, err
}

func (p *Parser) Init() error {
return nil
}

func init() {
// Register parser
parsers.Add("nagios",
Expand All @@ -328,5 +324,5 @@ func init() {
func (p *Parser) InitFromConfig(config *parsers.Config) error {
p.metricName = config.MetricName
p.DefaultTags = config.DefaultTags
return p.Init()
return nil
}

0 comments on commit 7fa0579

Please sign in to comment.