Skip to content

Commit

Permalink
remove unnecessary return statements
Browse files Browse the repository at this point in the history
  • Loading branch information
dermetfan committed Jun 21, 2022
1 parent f830b47 commit e206800
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/application/component/web/main.go
Expand Up @@ -453,19 +453,15 @@ func (self *Web) ActionIdVersionGet(w http.ResponseWriter, req *http.Request) {
func (self *Web) ActionIdGet(w http.ResponseWriter, req *http.Request) {
if id, err := uuid.Parse(mux.Vars(req)["id"]); err != nil {
self.ClientError(w, errors.WithMessage(err, "Could not parse Action ID"))
return
} else if action, err := self.ActionService.GetById(id); err != nil {
self.ServerError(w, errors.WithMessagef(err, "Could not get Action by ID: %q", id))
return
} else if _, inputs, err := self.ActionService.IsRunnable(action); err != nil {
self.ServerError(w, errors.WithMessagef(err, "Could not get facts that satisfy inputs for Action with ID %q", id))
return
} else if err := render("action/[id].html", w, map[string]interface{}{
"Action": action,
"inputs": inputs,
}); err != nil {
self.ServerError(w, err)
return
}
}

Expand Down

0 comments on commit e206800

Please sign in to comment.