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)
|
||||
r.fieldNames = make([]string, len(h))
|
||||
i := 0
|
||||
for k, _ := range h {
|
||||
for k := range h {
|
||||
r.fieldNames[i] = k
|
||||
i++
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue