Skip to content

Commit 2dcdf36

Browse files
committed
lint fix and cleanup imports
Signed-off-by: Markus Blaschke <[email protected]>
1 parent 6f3e17f commit 2dcdf36

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

collector_base.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"time"
55

66
log "github.com/sirupsen/logrus"
7+
78
devopsClient "github.com/webdevops/azure-devops-exporter/azure-devops-client"
89
)
910

collector_processor_project.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55

66
log "github.com/sirupsen/logrus"
7+
78
devopsClient "github.com/webdevops/azure-devops-exporter/azure-devops-client"
89
)
910

collector_project.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"sync"
66

77
log "github.com/sirupsen/logrus"
8+
89
devopsClient "github.com/webdevops/azure-devops-exporter/azure-devops-client"
910
)
1011

metrics_build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ func (m *MetricsCollectorBuild) collectBuildsTimeline(ctx context.Context, logge
307307
for _, build := range list.List {
308308
timelineRecordList, _ := AzureDevopsClient.ListBuildTimeline(project.Id, int64ToString(build.Id))
309309
for _, timelineRecord := range timelineRecordList.List {
310-
recordType := timelineRecord.RecordType;
310+
recordType := timelineRecord.RecordType
311311
switch strings.ToLower(recordType) {
312312
case "stage":
313313
buildStageMetric.Add(prometheus.Labels{

metrics_stats.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66

77
"github.com/prometheus/client_golang/prometheus"
88
log "github.com/sirupsen/logrus"
9+
910
devopsClient "github.com/webdevops/azure-devops-exporter/azure-devops-client"
1011
)
1112

0 commit comments

Comments
 (0)