hello more inline errors

This commit is contained in:
Alex McGrath
2021-02-03 20:42:41 +00:00
committed by Senan Kelly
parent 31693079ac
commit f027d5a486

View File

@@ -451,8 +451,7 @@ func (c *Controller) ServePodcastDeleteDo(r *http.Request) *Response {
code: 400,
}
}
err = c.Podcasts.DeletePodcast(user.ID, id)
if err != nil {
if err := c.Podcasts.DeletePodcast(user.ID, id); err != nil {
return &Response{
err: "please provide a valid podcast id",
code: 400,