mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
hugolib: Remove unnecessary params
Found by github.com/mvdan/unparam
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
a2ec372a03
commit
4bfa189031
@@ -666,7 +666,7 @@ func (s *Site) reProcess(events []fsnotify.Event) (whatChanged, error) {
|
||||
}
|
||||
|
||||
go incrementalReadCollator(s, readResults, pageChan, fileConvChan, coordinator, errs)
|
||||
go converterCollator(s, convertResults, errs)
|
||||
go converterCollator(convertResults, errs)
|
||||
|
||||
for _, ev := range sourceReallyChanged {
|
||||
|
||||
@@ -1182,7 +1182,7 @@ func (s *Site) convertSource() chan error {
|
||||
go pageConverter(pageChan, results, wg)
|
||||
}
|
||||
|
||||
go converterCollator(s, results, errs)
|
||||
go converterCollator(results, errs)
|
||||
|
||||
for _, p := range s.rawAllPages {
|
||||
if p.shouldBuild() {
|
||||
@@ -1266,7 +1266,7 @@ func fileConverter(s *Site, files <-chan *source.File, results HandleResults, wg
|
||||
}
|
||||
}
|
||||
|
||||
func converterCollator(s *Site, results <-chan HandledResult, errs chan<- error) {
|
||||
func converterCollator(results <-chan HandledResult, errs chan<- error) {
|
||||
errMsgs := []string{}
|
||||
for r := range results {
|
||||
if r.err != nil {
|
||||
|
Reference in New Issue
Block a user