Skip to content

Commit

Permalink
refactor: remove unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sosolyht committed May 8, 2023
1 parent 1e0c67a commit a347b3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions sitemap/sitemap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
3 changes: 1 addition & 2 deletions sitemap/video_sitemap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit a347b3b

Please sign in to comment.