Skip to content

Commit fc0f840

Browse files
Rename function (PR feedback)
1 parent 7441813 commit fc0f840

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ func (r Request) ResponseWithCode(body interface{}, statusCode int) Response {
215215

216216
// RequestPathPattern finds the router entry pattern that matches the request
217217
func (r Request) RequestPathPattern() string {
218-
return routerEntryPathPatternForRequest(r)
218+
return routerPathPatternForRequest(r)
219219
}
220220

221221
// RequestMethod returns the HTTP method of the request

router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func RouterForRequest(r Request) *Router {
4646
return nil
4747
}
4848

49-
func routerEntryPathPatternForRequest(r Request) string {
49+
func routerPathPatternForRequest(r Request) string {
5050
if v := r.Context.Value(routerRequestPatternContextKey); v != nil {
5151
return v.(string)
5252
}

0 commit comments

Comments
 (0)