diff --git a/api/handler/response.go b/api/handler/response.go index 13610c6d..c44e71b1 100644 --- a/api/handler/response.go +++ b/api/handler/response.go @@ -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 { diff --git a/api/user-auth.go b/api/user-auth.go index 5c514ef3..ceaa6b9e 100644 --- a/api/user-auth.go +++ b/api/user-auth.go @@ -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))) - }) }) } diff --git a/cmd/gate/app-settings.go b/cmd/gate/app-settings.go index 1bc642fd..6662fb86 100644 --- a/cmd/gate/app-settings.go +++ b/cmd/gate/app-settings.go @@ -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")