From f57c80d22e3bf61deb3ad7abaa68d6ec1485bec7 Mon Sep 17 00:00:00 2001 From: Matthew Halpern Date: Mon, 18 Feb 2019 03:37:31 -0800 Subject: [PATCH] metrics: remove redundant type specifiers (#19090) --- metrics/metrics.go | 2 +- metrics/opentsdb.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/metrics/metrics.go b/metrics/metrics.go index 2a2b804e7c..5910fb0734 100644 --- a/metrics/metrics.go +++ b/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" diff --git a/metrics/opentsdb.go b/metrics/opentsdb.go index df7f152ed2..3fde55454b 100644 --- a/metrics/opentsdb.go +++ b/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