Update Makefile.common (#1220)

* Update Makefile.common

Update to new staticcheck method[0].

[0]: https://github.com/prometheus/prometheus/pull/5057

Signed-off-by: Ben Kochie <superq@gmail.com>

* Fix staticcheck errors.

Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
Ben Kochie 2019-01-04 16:58:53 +01:00 committed by Johannes 'fish' Ziemke
commit 070e4b2e17
5 changed files with 35 additions and 33 deletions

View file

@ -68,7 +68,7 @@ func NewNtpCollector() (Collector, error) {
}
if *ntpOffsetTolerance < 0 {
return nil, fmt.Errorf("Offset tolerance must be non-negative")
return nil, fmt.Errorf("offset tolerance must be non-negative")
}
return &ntpCollector{