aboutsummaryrefslogtreecommitdiff
path: root/commitquery
diff options
context:
space:
mode:
Diffstat (limited to 'commitquery')
-rw-r--r--commitquery/queries_new.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/commitquery/queries_new.go b/commitquery/queries_new.go
index b43084b4..c001dc3e 100644
--- a/commitquery/queries_new.go
+++ b/commitquery/queries_new.go
@@ -12,10 +12,7 @@ import (
//
// Labels: Deps-Borrowed.
func New(store objectstore.ReadingStore, graph *commitgraphread.Reader) *Queries {
- maxIdle := runtime.GOMAXPROCS(0)
- if maxIdle < 1 {
- maxIdle = 1
- }
+ maxIdle := max(runtime.GOMAXPROCS(0), 1)
return &Queries{
store: store,