From b85d1f92a27a97ea27132af35ce7de4a6e172aa1 Mon Sep 17 00:00:00 2001 From: Mihail Stoykov Date: Tue, 28 Apr 2020 17:02:30 +0300 Subject: [PATCH] Fix checking the wrong error when initing collectors --- cmd/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/run.go b/cmd/run.go index 0995f78ae4d..e27a1cc5496 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -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)