aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/index
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/index')
-rw-r--r--pkg/index/index.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/index/index.go b/pkg/index/index.go
index 0c014ee..3b34781 100644
--- a/pkg/index/index.go
+++ b/pkg/index/index.go
@@ -253,7 +253,7 @@ func workerTraverse(wg *sync.WaitGroup, ignoreHidden bool, visitQueue chan InfoP
}
func (idx Index) Traverse(numWorkers uint, ignoreHidden bool) []string {
- if numWorkers <= 1 {
+ if numWorkers == 0 {
panic(fmt.Sprint("Invalid number of workers: ", numWorkers))
}
docs := make([]string, 0)