Skip to content

Commit f57c80d

Browse files
Matthalp-zzkaralabe
authored andcommitted
metrics: remove redundant type specifiers (#19090)
1 parent 7b3e3d5 commit f57c80d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎metrics/metrics.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
//
2020
// This global kill-switch helps quantify the observer effect and makes
2121
// for less cluttered pprof profiles.
22-
var Enabled bool = false
22+
var Enabled = false
2323

2424
// MetricsEnabledFlag is the CLI flag name to use to enable metrics collections.
2525
const MetricsEnabledFlag = "metrics"

‎metrics/opentsdb.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"time"
1111
)
1212

13-
var shortHostName string = ""
13+
var shortHostName = ""
1414

1515
// OpenTSDBConfig provides a container with configuration parameters for
1616
// the OpenTSDB exporter

0 commit comments

Comments
 (0)