Skip to content

Commit b6172c6

Browse files
committed
tidy
1 parent 75f6ca5 commit b6172c6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

write.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ func (g *gitdb) Insert(mo Model) error {
3232

3333
func (g *gitdb) InsertMany(models []Model) error {
3434
tx := g.StartTransaction("InsertMany")
35-
var model Model
36-
for _, model = range models {
35+
for _, model := range models {
3736
//create a new variable to pass to function to avoid
3837
//passing pointer which will end up inserting the same
3938
//model multiple times

0 commit comments

Comments
 (0)