Skip to content

Commit 1bd0404

Browse files
telesvarerikdubbelboer
authored andcommitted
Removing redundant else statement from HeaderCookie (#596)
1 parent 9ba4cef commit 1bd0404

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

header.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,9 +1254,8 @@ func (h *RequestHeader) peek(key []byte) []byte {
12541254
case HeaderCookie:
12551255
if h.cookiesCollected {
12561256
return appendRequestCookieBytes(nil, h.cookies)
1257-
} else {
1258-
return peekArgBytes(h.h, key)
12591257
}
1258+
return peekArgBytes(h.h, key)
12601259
default:
12611260
return peekArgBytes(h.h, key)
12621261
}

0 commit comments

Comments
 (0)