From a347b3ba4a9a48390a1cce7561db48ead7ec859c Mon Sep 17 00:00:00 2001 From: sosolyht Date: Mon, 8 May 2023 22:20:07 +0900 Subject: [PATCH] refactor: remove unnecessary variable --- sitemap/sitemap.go | 3 +-- sitemap/video_sitemap.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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 }