Skip to content

Commit cfc96e4

Browse files
Simplify declaration of Metric array (#23)
1 parent 4822fe9 commit cfc96e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/collector_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ func (qr *errorQueryRunner) Query(query string) ([]Metric, error) {
3333

3434
func TestCollector(t *testing.T) {
3535
metrics := []Metric{
36-
Metric{
36+
{
3737
LabelKeys: []string{"key"},
3838
LabelValues: []string{"thing"},
3939
Values: map[string]float64{"": 1.1},
4040
},
41-
Metric{
41+
{
4242
LabelKeys: []string{"key"},
4343
LabelValues: []string{"thing2"},
4444
Values: map[string]float64{"": 2.1},

0 commit comments

Comments
 (0)