fix: return value

This commit is contained in:
zhangwenjian committed 2020-07-01 20:49:19 +08:00
1 parent 58999ef1a4
commit 8b68e98ebf
2 files changed
+2 -1

No files matched your search

+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
}
BIN
View File
Binary file not shown.