Browse Source

lint: Remove golint warning (#526)

pull/543/head
Veselkov Konstantin 6 years ago committed by Matt Silverlock
parent
commit
49c01487a1
  1. 4
      regexp.go

4
regexp.go

@ -181,7 +181,8 @@ func (r *routeRegexp) Match(req *http.Request, match *RouteMatch) bool {
} }
} }
return r.regexp.MatchString(host) return r.regexp.MatchString(host)
} else { }
if r.regexpType == regexpTypeQuery { if r.regexpType == regexpTypeQuery {
return r.matchQueryString(req) return r.matchQueryString(req)
} }
@ -190,7 +191,6 @@ func (r *routeRegexp) Match(req *http.Request, match *RouteMatch) bool {
path = req.URL.EscapedPath() path = req.URL.EscapedPath()
} }
return r.regexp.MatchString(path) return r.regexp.MatchString(path)
}
} }
// url builds a URL part using the given values. // url builds a URL part using the given values.

Loading…
Cancel
Save