fix golint issues in core/prometheus (#506)

This commit is contained in:
Kevin Wan
2021-02-22 14:55:04 +08:00
committed by GitHub
parent b4bb5c0323
commit 6e4c98e52d
2 changed files with 2 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ import (
var once sync.Once
// StartAgent starts a prometheus agent.
func StartAgent(c Config) {
once.Do(func() {
if len(c.Host) == 0 {