diff options
author | Jordan <me@jordan.im> | 2022-02-10 11:40:46 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2022-02-10 11:40:46 -0700 |
commit | 2191536b9ea9084525f649dff38b88ac40d222f2 (patch) | |
tree | 276eedc26746021ab942bce08ee803ce21a4b071 /scope.go | |
parent | ef2c410063d3be2632ad7449cab6f51511face6b (diff) | |
download | crawl-2191536b9ea9084525f649dff38b88ac40d222f2.tar.gz crawl-2191536b9ea9084525f649dff38b88ac40d222f2.zip |
crawl, scope: recurse infinitely by default
Diffstat (limited to 'scope.go')
-rw-r--r-- | scope.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |