summaryrefslogtreecommitdiffstats
path: root/publisher/publisher.go
diff options
context:
space:
mode:
Diffstat (limited to 'publisher/publisher.go')
-rw-r--r--publisher/publisher.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/publisher/publisher.go b/publisher/publisher.go
index 63eb1011f..970c93e6c 100644
--- a/publisher/publisher.go
+++ b/publisher/publisher.go
@@ -81,7 +81,7 @@ func NewDestinationPublisher(rs *resources.Spec, outputFormats output.Formats, m
fs := rs.BaseFs.PublishFs
cfg := rs.Cfg
var classCollector *htmlElementsCollector
- if rs.BuildConfig.WriteStats {
+ if rs.BuildConfig().WriteStats {
classCollector = newHTMLElementsCollector()
}
pub = DestinationPublisher{fs: fs, htmlElementsCollector: classCollector}