Skip to content

Commit

Permalink
Remove golint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kveselkov committed Oct 24, 2019
1 parent ff4e71f commit 63399a9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions regexp.go
Expand Up @@ -181,16 +181,16 @@ func (r *routeRegexp) Match(req *http.Request, match *RouteMatch) bool {
}
}
return r.regexp.MatchString(host)
} else {
if r.regexpType == regexpTypeQuery {
return r.matchQueryString(req)
}
path := req.URL.Path
if r.options.useEncodedPath {
path = req.URL.EscapedPath()
}
return r.regexp.MatchString(path)
}

if r.regexpType == regexpTypeQuery {
return r.matchQueryString(req)
}
path := req.URL.Path
if r.options.useEncodedPath {
path = req.URL.EscapedPath()
}
return r.regexp.MatchString(path)
}

// url builds a URL part using the given values.
Expand Down

0 comments on commit 63399a9

Please sign in to comment.