Skip to content

Commit 49c0148

Browse files
kveselkovelithrar
authored andcommitted
lint: Remove golint warning (#526)
1 parent 4de8a5a commit 49c0148

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

regexp.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -181,16 +181,16 @@ func (r *routeRegexp) Match(req *http.Request, match *RouteMatch) bool {
181181
}
182182
}
183183
return r.regexp.MatchString(host)
184-
} else {
185-
if r.regexpType == regexpTypeQuery {
186-
return r.matchQueryString(req)
187-
}
188-
path := req.URL.Path
189-
if r.options.useEncodedPath {
190-
path = req.URL.EscapedPath()
191-
}
192-
return r.regexp.MatchString(path)
193184
}
185+
186+
if r.regexpType == regexpTypeQuery {
187+
return r.matchQueryString(req)
188+
}
189+
path := req.URL.Path
190+
if r.options.useEncodedPath {
191+
path = req.URL.EscapedPath()
192+
}
193+
return r.regexp.MatchString(path)
194194
}
195195

196196
// url builds a URL part using the given values.

0 commit comments

Comments
 (0)