Skip to content

Commit

Permalink
sumdb: add missing return after http.Error
Browse files Browse the repository at this point in the history
Change-Id: Ic0a9149713f7981e44629b2d96cf2a6ec52d6976
Reviewed-on: https://go-review.googlesource.com/c/mod/+/500455
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
  • Loading branch information
alexandear authored and gopherbot committed Jun 2, 2023
1 parent fc83a8f commit e343115
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sumdb/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
msg, err := tlog.FormatRecord(start+int64(i), text)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
data = append(data, msg...)
}
Expand Down

0 comments on commit e343115

Please sign in to comment.