From 63399a9f1bd4ac5e07a4d52af17c66a6cea86652 Mon Sep 17 00:00:00 2001 From: Konstantin Veselkov Date: Thu, 24 Oct 2019 14:23:07 +0400 Subject: [PATCH] Remove golint warnings --- regexp.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/regexp.go b/regexp.go index 0293a92..b5a15ed 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.