Skip to content

Commit

Permalink
lint fix and cleanup imports
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
  • Loading branch information
mblaschke committed Sep 17, 2022
1 parent 6f3e17f commit 2dcdf36
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions collector_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"time"

log "github.com/sirupsen/logrus"

devopsClient "github.com/webdevops/azure-devops-exporter/azure-devops-client"
)

Expand Down
1 change: 1 addition & 0 deletions collector_processor_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"

log "github.com/sirupsen/logrus"

devopsClient "github.com/webdevops/azure-devops-exporter/azure-devops-client"
)

Expand Down
1 change: 1 addition & 0 deletions collector_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"sync"

log "github.com/sirupsen/logrus"

devopsClient "github.com/webdevops/azure-devops-exporter/azure-devops-client"
)

Expand Down
2 changes: 1 addition & 1 deletion metrics_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func (m *MetricsCollectorBuild) collectBuildsTimeline(ctx context.Context, logge
for _, build := range list.List {
timelineRecordList, _ := AzureDevopsClient.ListBuildTimeline(project.Id, int64ToString(build.Id))
for _, timelineRecord := range timelineRecordList.List {
recordType := timelineRecord.RecordType;
recordType := timelineRecord.RecordType
switch strings.ToLower(recordType) {
case "stage":
buildStageMetric.Add(prometheus.Labels{
Expand Down
1 change: 1 addition & 0 deletions metrics_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

"github.com/prometheus/client_golang/prometheus"
log "github.com/sirupsen/logrus"

devopsClient "github.com/webdevops/azure-devops-exporter/azure-devops-client"
)

Expand Down

0 comments on commit 2dcdf36

Please sign in to comment.