Fix lint errors

This commit is contained in:
9seconds
2018-07-09 16:11:05 +03:00
parent fb00cd1121
commit 29b5130c95
32 changed files with 207 additions and 55 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ import (
var instance *stats
// Start starts new statisitcs server.
func Start(conf *config.Config) {
log := zap.S().Named("stats")
@@ -40,7 +41,7 @@ func Start(conf *config.Config) {
}
interm := map[string]interface{}{}
json.Unmarshal(first, &interm)
json.Unmarshal(first, &interm) // nolint: errcheck
encoder := json.NewEncoder(w)
encoder.SetEscapeHTML(false)