Removed unnecessary 2nd value

This commit is contained in:
Deluan 2016-02-29 23:03:09 -05:00
parent 7a2063544f
commit 20650ed3fd
1 changed files with 1 additions and 1 deletions

View File

@ -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++
}