Skip to content

Commit 35b3dfd

Browse files
committed
fix lint issues
Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
1 parent 9bb9ac3 commit 35b3dfd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ func main() {
3939
initArgparser()
4040
initLogger()
4141
parseArguments()
42+
initSystem()
4243

4344
logger.Infof("starting azure-devops-exporter v%s (%s; %s; by %v)", gitTag, gitCommit, runtime.Version(), Author)
4445
logger.Info(string(Opts.GetJson()))

metrics_stats.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,10 @@ func (m *MetricsCollectorStats) CollectBuilds(ctx context.Context, logger *zap.S
274274

275275
if waitDuration >= 0 {
276276
m.prometheus.agentPoolBuildWait.With(prometheus.Labels{
277-
"agentPoolID": int64ToString(build.Queue.Pool.Id),
278-
"projectID": build.Project.Id,
277+
"agentPoolID": int64ToString(build.Queue.Pool.Id),
278+
"projectID": build.Project.Id,
279279
"buildDefinitionID": int64ToString(build.Definition.Id),
280-
"result": build.Result,
280+
"result": build.Result,
281281
}).Observe(waitDuration)
282282

283283
m.prometheus.projectBuildWait.With(prometheus.Labels{

0 commit comments

Comments
 (0)