Skip to content

Commit

Permalink
Prevent null values from being reported in json
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevin Teacutter authored Mar 1, 2018
1 parent f30b7da commit 478e54b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,8 @@ func (m *Metrics) init() {
quantile.Known(0.99, 0.0005),
)
}

if m.Errors == nil {
m.Errors = make([]string, 0)
}
}

0 comments on commit 478e54b

Please sign in to comment.