1
0
mirror of https://github.com/prometheus/mysqld_exporter.git synced 2025-07-30 06:43:05 +03:00

Update Makefile.common (#358)

* Update Makefile.commmon

* Update Makefile.common from latest prometheus upstream.
* Fix staticcheck errors.

Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
Ben Kochie
2019-01-06 01:11:11 +01:00
committed by GitHub
parent 75d12f71a5
commit 22db3fc0d1
4 changed files with 43 additions and 33 deletions

View File

@ -209,7 +209,7 @@ func (ScrapeUser) Scrape(ctx context.Context, db *sql.DB, ch chan<- prometheus.M
return err
}
if *userPrivilegesFlag == true {
if *userPrivilegesFlag {
userCols, err := userRows.Columns()
if err != nil {
return err