carlos / platform Public

console: drop the unused record binding in the move-request handler

Paul Campbell pushed by paul@keymail.dev 55ff91c30a8e0376a88e7f768b4a017e440927cb parent bef8366
1 file changed, +1 −2
  • internal/console/apiinstancemove.go +1 −2
diff --git a/internal/console/apiinstancemove.go b/internal/console/apiinstancemove.go
index a3b7ab318..2f5e21f17 100644
--- a/internal/console/apiinstancemove.go
+++ b/internal/console/apiinstancemove.go
@@ -91,7 +91,7 @@ func (s *Server) moveTransition(w http.ResponseWriter, r *http.Request, acct *Ac
}
func (s *Server) handleAPIInstanceMoveRequest(w http.ResponseWriter, r *http.Request) {
- acct, app, host, rec, ok := s.moveGate(w, r)
+ acct, app, host, _, ok := s.moveGate(w, r)
if !ok {
return
}
@@ -124,7 +124,6 @@ func (s *Server) handleAPIInstanceMoveRequest(w http.ResponseWriter, r *http.Req
jsonError(w, http.StatusBadRequest, "region "+to+" is not armed in this deployment — armed: "+strings.Join(codes, ", "))
return
}
- _ = rec
s.moveTransition(w, r, acct, app, host, provision.MoveRequest(to, time.Now()), http.StatusAccepted)
}