From 2191536b9ea9084525f649dff38b88ac40d222f2 Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 10 Feb 2022 11:40:46 -0700 Subject: crawl, scope: recurse infinitely by default --- scope.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scope.go') 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 -- cgit v1.2.3-54-g00ecf