diff --git a/sitemap/sitemap.go b/sitemap/sitemap.go index f79e955..f408b8e 100644 --- a/sitemap/sitemap.go +++ b/sitemap/sitemap.go @@ -100,8 +100,7 @@ func (s *sitemap) Path(path string) *sitemap { } } - output := filepath.Join(sitemapsDir, "sitemap.xml") - s.path = output + s.path = filepath.Join(sitemapsDir, "sitemap.xml") return s } diff --git a/sitemap/video_sitemap.go b/sitemap/video_sitemap.go index 73a7aec..a151256 100644 --- a/sitemap/video_sitemap.go +++ b/sitemap/video_sitemap.go @@ -107,7 +107,6 @@ func (v *videoSitemap) Path(path string) *videoSitemap { } } - output := filepath.Join(sitemapsDir, "sitemap_video.xml") - v.path = output + v.path = filepath.Join(sitemapsDir, "sitemap_video.xml") return v }