Skip to content

Commit

Permalink
feat: fix the crash???
Browse files Browse the repository at this point in the history
  • Loading branch information
Sky Kosiner committed Aug 10, 2024
1 parent 20ea393 commit caacd4a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/book/book.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,8 @@ func MakeHandler(fn func(http.ResponseWriter, *http.Request, string)) http.Handl
func ViewHandler(w http.ResponseWriter, r *http.Request, title string) {
p, err := loadPage(title)

if p == nil {
if p == nil || err != nil {
utils.NotFound(w, r)
}

if err != nil {
return
}

Expand Down

0 comments on commit caacd4a

Please sign in to comment.