From 49c01487a141b49f8ffe06277f3dca3ee80a55fa Mon Sep 17 00:00:00 2001 From: Veselkov Konstantin Date: Thu, 21 Nov 2019 21:05:00 +0400 Subject: [PATCH] lint: Remove golint warning (#526) --- regexp.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/regexp.go b/regexp.go index 0293a928..b5a15ed9 100644 --- a/regexp.go +++ b/regexp.go @@ -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.