Skip to content

Commit

Permalink
Simplify segment loops
Browse files Browse the repository at this point in the history
  • Loading branch information
timokoessler authored and tudor-timcu committed Jan 7, 2025
1 parent 60a1446 commit 1796b67
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/request-processor/utils/should_discover_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,11 @@ func ShouldDiscoverRoute(statusCode int, route, method string) bool {
if isDotFile(segment) {
return false
}
}

for _, segment := range segments {
if containsIgnoredString(segment) {
return false
}
}

for _, segment := range segments {

if !isAllowedExtension(segment) {
return false
}
Expand Down

0 comments on commit 1796b67

Please sign in to comment.