Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Commit

Permalink
Fix empty search page when no results (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaskin committed Jun 28, 2017
1 parent ae6303d commit 229de39
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ func SearchHandler(w http.ResponseWriter, r *http.Request) {
booksHTML.WriteString(`</div>`)
if !matched {
booksHTML.WriteString("No books matching your query have been found.")
return
}
io.WriteString(w, pageHTML("Search Results: "+q, booksHTML.String()))
} else {
Expand Down

0 comments on commit 229de39

Please sign in to comment.