Update code to the latest golangci-lint

This commit is contained in:
9seconds
2021-07-31 11:35:05 +03:00
parent dc99dd165e
commit eaa757b6d0
9 changed files with 14 additions and 18 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ func makeIPBlocklist(conf *config.Config, logger mtglib.Logger, ntw mtglib.Netwo
}
func makeEventStream(conf *config.Config, logger mtglib.Logger) (mtglib.EventStream, error) {
factories := make([]events.ObserverFactory, 0, 2)
factories := make([]events.ObserverFactory, 0, 2) // nolint: gomnd
if conf.Stats.StatsD.Enabled.Get(false) {
statsdFactory, err := stats.NewStatsd(