Skip to content

Commit ba5c567

Browse files
committed
CI linting fixup
Signed-off-by: Joe Adams <github@joeadams.io>
1 parent 8bd7304 commit ba5c567

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cluster/provider.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ func (i *InfoProvider) GetInfo(ctx context.Context) (Info, error) {
6161

6262
// If the cached info is recent enough, return it.
6363
if !cachedAt.IsZero() && time.Since(cachedAt) < i.interval {
64-
6564
if err != nil {
6665
return Info{}, err
6766
}

cluster/provider_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,4 @@ func TestInfoProvider_GetInfo(t *testing.T) {
103103
if timesURLCalled != 2 {
104104
t.Errorf("expected URL to be called only once, got %d", timesURLCalled)
105105
}
106-
107106
}

collector/collector.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ import (
2525
"time"
2626

2727
"github.com/alecthomas/kingpin/v2"
28-
"github.com/prometheus-community/elasticsearch_exporter/cluster"
2928
"github.com/prometheus/client_golang/prometheus"
29+
30+
"github.com/prometheus-community/elasticsearch_exporter/cluster"
3031
)
3132

3233
const (

collector/collector_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ package collector
1616
import (
1717
"context"
1818

19-
"github.com/prometheus-community/elasticsearch_exporter/cluster"
2019
"github.com/prometheus/client_golang/prometheus"
20+
21+
"github.com/prometheus-community/elasticsearch_exporter/cluster"
2122
)
2223

2324
// wrapCollector is a util to let you test your Collector implementation.

0 commit comments

Comments
 (0)