mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
all: Run modernize -fix ./...
This commit is contained in:
@@ -330,10 +330,7 @@ func NewHugoSites(cfg deps.DepsCfg) (*HugoSites, error) {
|
||||
|
||||
func newHugoSites(cfg deps.DepsCfg, d *deps.Deps, pageTrees *pageTrees, sites []*Site) (*HugoSites, error) {
|
||||
numWorkers := config.GetNumWorkerMultiplier()
|
||||
numWorkersSite := numWorkers
|
||||
if numWorkersSite > len(sites) {
|
||||
numWorkersSite = len(sites)
|
||||
}
|
||||
numWorkersSite := min(numWorkers, len(sites))
|
||||
workersSite := para.New(numWorkersSite)
|
||||
|
||||
h := &HugoSites{
|
||||
|
Reference in New Issue
Block a user