Skip to content

Commit

Permalink
feat(router): make disambiguateMatches() private
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Miaskowski committed Oct 18, 2018
1 parent 23dc242 commit 91c2a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/http/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function matchByMethod(request: t.IHttpRequest, operation: IHttpOperation): bool
return operation.method.toLowerCase() === request.method.toLowerCase();
}

export function disambiguateMatches(matches: IMatch[]): null | IHttpOperation {
function disambiguateMatches(matches: IMatch[]): null | IHttpOperation {
const match = (
// prefer concrete server and concrete path
matches.find(match => areServerAndPath(match, MatchType.CONCRETE, MatchType.CONCRETE)) ||
Expand Down

0 comments on commit 91c2a7b

Please sign in to comment.