fix: return value
This commit is contained in:
1 parent
58999ef1a4
commit
8b68e98ebf
2 files changed
+2
-1
No files matched your search
+2
-1
@@ -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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user