mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 04:27:37 +03:00
Small refactoring
This commit is contained in:
parent
abe5690018
commit
11bef060a3
5 changed files with 53 additions and 56 deletions
|
@ -141,7 +141,7 @@ func (r *artistRepository) toModels(dba []dbArtist) model.Artists {
|
|||
}
|
||||
|
||||
func (r *artistRepository) getIndexKey(a *model.Artist) string {
|
||||
name := strings.ToLower(str.NoArticle(a.Name))
|
||||
name := strings.ToLower(str.RemoveArticle(a.Name))
|
||||
for k, v := range r.indexGroups {
|
||||
key := strings.ToLower(k)
|
||||
if strings.HasPrefix(name, key) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue