refactor(cache): rename NewCache to New

This commit is contained in:
ayn2op 2026-08-05 00:06:41 -04:00
parent eab73a3b19
commit c6ca02d8ae
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ type Cache struct {
items sync.Map
}
func NewCache() *Cache {
func New() *Cache {
return &Cache{}
}

View file

@ -71,7 +71,7 @@ func newComposer(cfg *config.Config, chat *Model) *composer {
cfg: cfg,
chat: chat,
sendMessageData: &api.SendMessageData{},
cache: cache.NewCache(),
cache: cache.New(),
mentionsList: mentionslist.NewModel(cfg),
}
c.Box = ui.ConfigureBox(c.Box, &cfg.Theme)