Parcourir la source

metrics: remove redundant type specifiers (#19090)

Matthew Halpern il y a 6 ans
Parent
commit
f57c80d22e
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      metrics/metrics.go
  2. 1 1
      metrics/opentsdb.go

+ 1 - 1
metrics/metrics.go

@@ -19,7 +19,7 @@ import (
 //
 // This global kill-switch helps quantify the observer effect and makes
 // for less cluttered pprof profiles.
-var Enabled bool = false
+var Enabled = false
 
 // MetricsEnabledFlag is the CLI flag name to use to enable metrics collections.
 const MetricsEnabledFlag = "metrics"

+ 1 - 1
metrics/opentsdb.go

@@ -10,7 +10,7 @@ import (
 	"time"
 )
 
-var shortHostName string = ""
+var shortHostName = ""
 
 // OpenTSDBConfig provides a container with configuration parameters for
 // the OpenTSDB exporter