mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-16 16:17:38 +03:00
Removing redundant else statement from HeaderCookie (#596)
This commit is contained in:
committed by
Erik Dubbelboer
parent
9ba4cef1ba
commit
1bd0404ced
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user