rename var to be more descriptive

This commit is contained in:
Matthew Jaffee 2018-04-09 16:42:50 -05:00
parent f8cb579187
commit 96e953e6e0
No known key found for this signature in database
GPG key ID: 51C676AF9FFCDB87

View file

@ -289,13 +289,13 @@ func (h *Handler) handleGetSchema(w http.ResponseWriter, r *http.Request) {
// handleGetStatus handles GET /status requests.
func (h *Handler) handleGetStatus(w http.ResponseWriter, r *http.Request) {
status, err := h.API.Status(r.Context())
pb, err := h.API.Status(r.Context())
if err != nil {
h.Logger.Printf("cluster status error: %s", err)
return
}
cs, ok := status.(*internal.ClusterStatus)
cs, ok := pb.(*internal.ClusterStatus)
if !ok {
panic("status is not a status")
}