Skip to content

Commit 73b614a

Browse files
authored
Merge pull request #4 from iamrare/update-travis-go
Update travis go
2 parents 05acc2d + e5aac32 commit 73b614a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: go
22

33
go:
4-
- "1.12"
4+
- "1.14"
55

66
script:
77
- diff -u <(echo -n) <(gofmt -s -d ./)

exporter/metrics.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func AddMetrics() map[string]*prometheus.Desc {
2222
prometheus.BuildFQName("github", "repo", "pull_request_count"),
2323
"Total number of pull requests for given repository",
2424
[]string{}, nil,
25-
)
25+
)
2626
APIMetrics["Watchers"] = prometheus.NewDesc(
2727
prometheus.BuildFQName("github", "repo", "watchers"),
2828
"Total number of watchers/subscribers for given repository",
@@ -78,7 +78,7 @@ func (e *Exporter) processMetrics(data []*Datum, rates *RateLimits, ch chan<- pr
7878
}
7979
}
8080
prCount := 0
81-
for _, _ = range x.Pulls {
81+
for range x.Pulls {
8282
prCount += 1
8383
}
8484
// issueCount = x.OpenIssue - prCount

0 commit comments

Comments
 (0)