Enable gofmt code simplification (#4887)

This commit is contained in:
Trevor Pounds
2018-10-19 16:32:54 -04:00
committed by Daniel Nelson
parent 4a311830c6
commit ee056278f5
59 changed files with 599 additions and 599 deletions

View File

@@ -33,7 +33,7 @@ type testCase struct {
var singleMetric = testCase{
[]api.ValueList{
api.ValueList{
{
Identifier: api.Identifier{
Host: "xyzzy",
Plugin: "cpu",
@@ -48,7 +48,7 @@ var singleMetric = testCase{
},
},
[]metricData{
metricData{
{
"cpu_value",
map[string]string{
"type_instance": "user",
@@ -65,7 +65,7 @@ var singleMetric = testCase{
var multiMetric = testCase{
[]api.ValueList{
api.ValueList{
{
Identifier: api.Identifier{
Host: "xyzzy",
Plugin: "cpu",
@@ -81,7 +81,7 @@ var multiMetric = testCase{
},
},
[]metricData{
metricData{
{
"cpu_0",
map[string]string{
"type_instance": "user",
@@ -93,7 +93,7 @@ var multiMetric = testCase{
"value": float64(42),
},
},
metricData{
{
"cpu_1",
map[string]string{
"type_instance": "user",