Skip to content

Commit

Permalink
Removing redundant else statement from HeaderCookie (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
aidarkhanov authored and erikdubbelboer committed Jul 3, 2019
1 parent 9ba4cef commit 1bd0404
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions header.go
Original file line number Diff line number Diff line change
Expand Up @@ -1254,9 +1254,8 @@ func (h *RequestHeader) peek(key []byte) []byte {
case HeaderCookie:
if h.cookiesCollected {
return appendRequestCookieBytes(nil, h.cookies)
} else {
return peekArgBytes(h.h, key)
}
return peekArgBytes(h.h, key)
default:
return peekArgBytes(h.h, key)
}
Expand Down

0 comments on commit 1bd0404

Please sign in to comment.