Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/redirects/matching.go')
-rw-r--r--internal/redirects/matching.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/redirects/matching.go b/internal/redirects/matching.go
index a75255bb..25e2ce2e 100644
--- a/internal/redirects/matching.go
+++ b/internal/redirects/matching.go
@@ -103,7 +103,7 @@ func matchesRule(rule *netlifyRedirects.Rule, path string) (bool, string) {
// If no rule matches, this function returns `nil` and an empty string
func (r *Redirects) match(path string) (*netlifyRedirects.Rule, string) {
for i := range r.rules {
- if i >= maxRuleCount {
+ if i >= cfg.MaxRuleCount {
// do not process any more rules
return nil, ""
}