Skip to content

Commit

Permalink
Fix checking the wrong error when initing collectors
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed Apr 28, 2020
1 parent ad190b2 commit 5e7457b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ a commandline interface for interacting with it.`,
if cerr != nil {
return cerr
}
if cerr = collector.Init(); err != nil {
if cerr = collector.Init(); cerr != nil {
return cerr
}
engine.Collectors = append(engine.Collectors, collector)
Expand Down

0 comments on commit 5e7457b

Please sign in to comment.