Skip to content

Commit

Permalink
Remove unused attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
jlelse committed Sep 23, 2023
1 parent 1b39454 commit c57ae03
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ type configBlog struct {
Map *configGeoMap `mapstructure:"map"`
Contact *configContact `mapstructure:"contact"`
Announcement *configAnnouncement `mapstructure:"announcement"`
name string
// Configs read from database
hideOldContentWarning bool
hideShareButton bool
Expand Down Expand Up @@ -453,10 +452,6 @@ func (a *goBlog) initConfig(logging bool) error {
if a.cfg.Blogs[a.cfg.DefaultBlog] == nil {
return errors.New("default blog does not exist")
}
// Set name attribute for every blog
for name, blog := range a.cfg.Blogs {
blog.name = name
}
// Check media storage config
if ms := a.cfg.Micropub.MediaStorage; ms != nil && ms.MediaURL != "" {
ms.MediaURL = strings.TrimSuffix(ms.MediaURL, "/")
Expand Down

0 comments on commit c57ae03

Please sign in to comment.