diff options
Diffstat (limited to 'hugolib/pages_capture.go')
-rw-r--r-- | hugolib/pages_capture.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/hugolib/pages_capture.go b/hugolib/pages_capture.go index 361b87e84..f332e85a8 100644 --- a/hugolib/pages_capture.go +++ b/hugolib/pages_capture.go @@ -36,9 +36,8 @@ import ( "github.com/gohugoio/hugo/source" - "github.com/gohugoio/hugo/hugofs" - "github.com/gohugoio/hugo/common/loggers" + "github.com/gohugoio/hugo/hugofs" "github.com/spf13/afero" ) @@ -109,10 +108,6 @@ type contentDirKey struct { // Collect. func (c *pagesCollector) Collect() error { c.proc.Start(context.Background()) - if c.tracker != nil { - c.tracker.start() - defer c.tracker.stop() - } var collectErr error if len(c.filenames) == 0 { @@ -125,7 +120,7 @@ func (c *pagesCollector) Collect() error { dirs[contentDirKey{dir, filename, btype}] = true } - for dir, _ := range dirs { + for dir := range dirs { switch dir.tp { case bundleLeaf, bundleBranch: collectErr = c.collectDir(dir.dirname, true, nil) |