Skip to content

Commit ee84be3

Browse files
committed
Run gofumports in the project
1 parent 5261786 commit ee84be3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

client/nginx_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import "testing"
55
const validStabStats = "Active connections: 1457 \nserver accepts handled requests\n 6717066 6717066 65844359 \nReading: 1 Writing: 8 Waiting: 1448 \n"
66

77
func TestParseStubStatsValidInput(t *testing.T) {
8-
var tests = []struct {
8+
tests := []struct {
99
input []byte
1010
expectedResult StubStats
1111
expectedError bool

collector/helper.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ import (
44
"github.com/prometheus/client_golang/prometheus"
55
)
66

7-
const nginxUp = 1
8-
const nginxDown = 0
7+
const (
8+
nginxUp = 1
9+
nginxDown = 0
10+
)
911

1012
func newGlobalMetric(namespace string, metricName string, docString string, constLabels map[string]string) *prometheus.Desc {
1113
return prometheus.NewDesc(namespace+"_"+metricName, docString, nil, constLabels)

0 commit comments

Comments
 (0)