mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
fix: missing return after error response (#16920)
This commit is contained in:
parent
483b226cc1
commit
518f6e4d39
@ -1193,6 +1193,7 @@ func (s *peerRESTServer) GetBandwidth(w http.ResponseWriter, r *http.Request) {
|
||||
func (s *peerRESTServer) GetPeerMetrics(w http.ResponseWriter, r *http.Request) {
|
||||
if !s.IsValid(w, r) {
|
||||
s.writeErrorResponse(w, errors.New("invalid request"))
|
||||
return
|
||||
}
|
||||
|
||||
enc := gob.NewEncoder(w)
|
||||
|
Loading…
Reference in New Issue
Block a user