mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-06 10:23:21 +03:00
Removed unnecessary 2nd value
This commit is contained in:
parent
7a2063544f
commit
20650ed3fd
@ -22,7 +22,7 @@ func (r *BaseRepository) init(table string, entity interface{}) {
|
|||||||
h, _ := utils.ToMap(entity)
|
h, _ := utils.ToMap(entity)
|
||||||
r.fieldNames = make([]string, len(h))
|
r.fieldNames = make([]string, len(h))
|
||||||
i := 0
|
i := 0
|
||||||
for k, _ := range h {
|
for k := range h {
|
||||||
r.fieldNames[i] = k
|
r.fieldNames[i] = k
|
||||||
i++
|
i++
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user