aboutsummaryrefslogtreecommitdiff
path: root/scope.go
diff options
context:
space:
mode:
Diffstat (limited to 'scope.go')
-rw-r--r--scope.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/scope.go b/scope.go
index bda1035..c53182f 100644
--- a/scope.go
+++ b/scope.go
@@ -18,7 +18,7 @@ type maxDepthScope struct {
}
func (s *maxDepthScope) Check(_ Outlink, depth int) bool {
- return depth < s.maxDepth
+ return depth < s.maxDepth || s.maxDepth == -1
}
// NewDepthScope returns a Scope that will limit crawls to a