*: fix whitespace errors

This commit is contained in:
Roman Khimov 2021-05-13 22:13:09 +03:00
parent 7ce5b3392f
commit b851889934
3 changed files with 0 additions and 3 deletions

View file

@ -127,7 +127,6 @@ type CopyObjectResponse struct {
// MarshalXML - StringMap marshals into XML.
func (s StringMap) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
tokens := []xml.Token{start}
for key, value := range s {

View file

@ -21,7 +21,6 @@ func AttachUserAuth(router *mux.Router, center auth.Center, log *zap.Logger) {
h.ServeHTTP(w, r.WithContext(
sdk.SetBearerToken(r.Context(), token)))
})
})
}

View file

@ -108,7 +108,6 @@ func fetchPeers(l *zap.Logger, v *viper.Viper) map[string]float64 {
peers := make(map[string]float64)
for i := 0; ; i++ {
key := cfgPeers + "." + strconv.Itoa(i) + "."
address := v.GetString(key + "address")
weight := v.GetFloat64(key + "weight")