fix: return value

This commit is contained in:
zhangwenjian
2020-07-01 20:49:19 +08:00
parent 58999ef1a4
commit 8b68e98ebf
2 changed files with 2 additions and 1 deletions
+2 -1
View File
@@ -212,7 +212,8 @@ func (e *Dept) Delete(id int) (success bool, err error) {
}
}()
if err := tx.Error; err != nil {
if err = tx.Error; err != nil {
success = false
return
}