Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Klaus Post <klauspost@gmail.com>
  • Loading branch information
harshavardhana and klauspost committed Nov 4, 2020
1 parent 293721e commit ef28b85
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/storage-rest-server.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ func (s *storageRESTServer) ListVolsHandler(w http.ResponseWriter, r *http.Reque
s.writeErrorResponse(w, err)
return
}
defer w.(http.Flusher).Flush()
logger.LogIf(r.Context(), msgp.Encode(w, VolsInfo(infos)))
}

Expand All @@ -235,7 +234,6 @@ func (s *storageRESTServer) StatVolHandler(w http.ResponseWriter, r *http.Reques
s.writeErrorResponse(w, err)
return
}
defer w.(http.Flusher).Flush()
logger.LogIf(r.Context(), msgp.Encode(w, &info))
}

Expand Down

0 comments on commit ef28b85

Please sign in to comment.