Make the installer less obtuse to understand

This commit is contained in:
Dane Everitt
2019-11-24 20:40:13 -08:00
parent 65b01e1869
commit 69aa559bcf
2 changed files with 23 additions and 20 deletions

View File

@@ -425,7 +425,7 @@ func (rt *Router) routeServerUpdate(w http.ResponseWriter, r *http.Request, ps h
func (rt *Router) routeCreateServer(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
defer r.Body.Close()
err, inst := installer.New(rt.ReaderToBytes(r.Body))
inst, err := installer.New(rt.ReaderToBytes(r.Body))
if err != nil {
zap.S().Warnw("failed to validate the received data", zap.Error(err))