makefile: update Makefile.common with newer version
authorMarcelo E. Magallon <marcelo.magallon@grafana.com>
Wed, 3 Feb 2021 20:43:07 +0000 (14:43 -0600)
committerMarcelo E. Magallon <marcelo.magallon@grafana.com>
Tue, 9 Mar 2021 20:09:35 +0000 (14:09 -0600)
commitcee8181c4a84ee0e25b65fb67805a7872000aa27
treee2718ee6c168590706545ea288b755613bb99149
parente9482560a52eaadde1bf7cf083f5d1c7f9fba5b4
makefile: update Makefile.common with newer version

This updates golangci-lint from version 1.18.0 to 1.36.0. Newer versions
flag a possible nil pointer dereference, so rework some of the logic to
make sure that's not the case.

Add a test that covers the case of the changed code.

Closes #738

Signed-off-by: Marcelo E. Magallon <marcelo.magallon@grafana.com>
Makefile.common
prober/http.go
prober/http_test.go
prober/utils_test.go