Removing redundant else statement from HeaderCookie (#596)

This commit is contained in:
Dair Aidarkhanov
2019-07-04 03:40:48 +06:00
committed by Erik Dubbelboer
parent 9ba4cef1ba
commit 1bd0404ced
+1 -2
View File
@@ -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)
}