Skip to content

Commit 27192a3

Browse files
jacobm-splunkdaveshanley
authored andcommitted
removed unused function parameter
1 parent 6bf90bb commit 27192a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

paths/paths.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
func FindPath(request *http.Request, document *v3.Document) (*v3.PathItem, []*errors.ValidationError, string) {
2525
var validationErrors []*errors.ValidationError
2626

27-
basePaths := getBasePaths(request, document)
27+
basePaths := getBasePaths(document)
2828
stripped := StripRequestPath(request, document)
2929

3030
reqPathSegments := strings.Split(stripped, "/")
@@ -193,7 +193,7 @@ pathFound:
193193
}
194194
}
195195

196-
func getBasePaths(request *http.Request, document *v3.Document) []string {
196+
func getBasePaths(document *v3.Document) []string {
197197
// extract base path from document to check against paths.
198198
var basePaths []string
199199
for _, s := range document.Servers {
@@ -209,7 +209,7 @@ func getBasePaths(request *http.Request, document *v3.Document) []string {
209209
// StripRequestPath strips the base path from the request path, based on the server paths provided in the specification
210210
func StripRequestPath(request *http.Request, document *v3.Document) string {
211211

212-
basePaths := getBasePaths(request, document)
212+
basePaths := getBasePaths(document)
213213

214214
// strip any base path
215215
stripped := stripBaseFromPath(request.URL.Path, basePaths)

0 commit comments

Comments
 (0)