We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75f6ca5 commit b6172c6Copy full SHA for b6172c6
write.go
@@ -32,8 +32,7 @@ func (g *gitdb) Insert(mo Model) error {
32
33
func (g *gitdb) InsertMany(models []Model) error {
34
tx := g.StartTransaction("InsertMany")
35
- var model Model
36
- for _, model = range models {
+ for _, model := range models {
37
//create a new variable to pass to function to avoid
38
//passing pointer which will end up inserting the same
39
//model multiple times
0 commit comments