Showing 1 of 2 total issues
Function ParseRequest
has 9 return statements (exceeds 4 allowed). Open
Open
func ParseRequest(r *http.Request) ([]*Request, bool, *Error) {
var rerr *Error
if !strings.HasPrefix(r.Header.Get(contentTypeKey), contentTypeValue) {
return nil, false, ErrInvalidRequest()