Skip to content

Commit e343115

Browse files
alexandeargopherbot
authored andcommitted
sumdb: add missing return after http.Error
Change-Id: Ic0a9149713f7981e44629b2d96cf2a6ec52d6976 Reviewed-on: https://go-review.googlesource.com/c/mod/+/500455 Reviewed-by: Bryan Mills <[email protected]> Auto-Submit: Bryan Mills <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Bryan Mills <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
1 parent fc83a8f commit e343115

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sumdb/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
148148
msg, err := tlog.FormatRecord(start+int64(i), text)
149149
if err != nil {
150150
http.Error(w, err.Error(), http.StatusInternalServerError)
151+
return
151152
}
152153
data = append(data, msg...)
153154
}

0 commit comments

Comments
 (0)