Skip to content

Commit

Permalink
Removed superfluous else statement (#14982)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjhetzle authored Mar 5, 2024
1 parent 74b5bed commit 72f91e5
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pkg/http/request_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,12 @@ func (h *RequestLogHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
Size: 0,
}))
panic(err)
} else {
h.write(t, h.inputGetter(r, &RequestLogResponse{
Code: rr.ResponseCode,
Latency: latency,
Size: rr.ResponseSize,
}))
}
h.write(t, h.inputGetter(r, &RequestLogResponse{
Code: rr.ResponseCode,
Latency: latency,
Size: rr.ResponseSize,
}))
}()

h.handler.ServeHTTP(rr, r)
Expand Down

0 comments on commit 72f91e5

Please sign in to comment.