delete useless part
This commit is contained in:
parent
8edc482525
commit
231b98ae7a
@ -351,8 +351,6 @@ func (db *DB) FirstOrCreate(dest interface{}, conds ...interface{}) (tx *DB) {
|
||||
}
|
||||
|
||||
return tx.Model(dest).Updates(assigns)
|
||||
} else {
|
||||
tx.Error = result.Error
|
||||
}
|
||||
} else {
|
||||
tx.Error = result.Error
|
||||
|
Loading…
x
Reference in New Issue
Block a user