Skip to content

Commit

Permalink
Merge pull request #309 from jan-guenter/OpenMetrics
Browse files Browse the repository at this point in the history
fixed issues introduced in 4ef15e2
  • Loading branch information
boyter committed Dec 14, 2021
2 parents fdd5d01 + 2413a2e commit b5f65ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions processor/formatters.go
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ func aggregateLanguageSummary(input chan *FileJob) []LanguageSummary {
_, ok := languages[res.Language]

if !ok {
var files []*FileJob
files := []*FileJob{}
if Files {
files = append(files, res)
}
Expand Down Expand Up @@ -1112,7 +1112,7 @@ func aggregateLanguageSummary(input chan *FileJob) []LanguageSummary {
}
}

var language []LanguageSummary
language := []LanguageSummary{}
for _, summary := range languages {
language = append(language, summary)
}
Expand Down

0 comments on commit b5f65ad

Please sign in to comment.