Skip to content

Commit

Permalink
Rename function (PR feedback)
Browse files Browse the repository at this point in the history
  • Loading branch information
RohanPadmanabhan committed Dec 4, 2023
1 parent 7441813 commit fc0f840
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion request.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func (r Request) ResponseWithCode(body interface{}, statusCode int) Response {

// RequestPathPattern finds the router entry pattern that matches the request
func (r Request) RequestPathPattern() string {
return routerEntryPathPatternForRequest(r)
return routerPathPatternForRequest(r)
}

// RequestMethod returns the HTTP method of the request
Expand Down
2 changes: 1 addition & 1 deletion router.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func RouterForRequest(r Request) *Router {
return nil
}

func routerEntryPathPatternForRequest(r Request) string {
func routerPathPatternForRequest(r Request) string {
if v := r.Context.Value(routerRequestPatternContextKey); v != nil {
return v.(string)
}
Expand Down

0 comments on commit fc0f840

Please sign in to comment.