Skip to content

Commit

Permalink
remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyenought committed Sep 4, 2023
1 parent fa32c39 commit 64a72e7
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions fiberi18n/i18n.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,9 @@ func (c *Config) initLocalizerMap() {
localizerMap.Store(lang, i18n.NewLocalizer(c.bundle, lang))
}
c.mu.Lock()
defer c.mu.Unlock()
newLocalizerMap := &sync.Map{}
localizerMap.Range(func(key, value interface{}) bool {
newLocalizerMap.Store(key, value)
return true
})
c.localizerMap = localizerMap
c.mu.Unlock()

c.localizerMap = newLocalizerMap
}

/*
Expand Down

0 comments on commit 64a72e7

Please sign in to comment.