fix: return

This commit is contained in:
black 2023-02-13 15:30:58 +08:00
parent c45ac6489b
commit 40b3d4bc89

View File

@ -17,6 +17,7 @@ func callMethod(db *gorm.DB, fc func(value interface{}, tx *gorm.DB) bool) {
fc(value.Addr().Interface(), tx) fc(value.Addr().Interface(), tx)
} else { } else {
db.AddError(gorm.ErrInvalidValue) db.AddError(gorm.ErrInvalidValue)
return
} }
db.Statement.CurDestIndex++ db.Statement.CurDestIndex++
} }