cmd/gate: fix gosimple suggestion

cmd/gate/app-settings.go:108:36  gosimple    S1019: should use make(map[string]float64) instead
This commit is contained in:
Roman Khimov 2021-05-13 22:11:55 +03:00
parent e15159443b
commit 7ce5b3392f

View file

@ -105,7 +105,7 @@ var ignore = map[string]struct{}{
func (empty) Read([]byte) (int, error) { return 0, io.EOF }
func fetchPeers(l *zap.Logger, v *viper.Viper) map[string]float64 {
peers := make(map[string]float64, 0)
peers := make(map[string]float64)
for i := 0; ; i++ {