diff options
Diffstat (limited to 'models/org.go')
-rw-r--r-- | models/org.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/models/org.go b/models/org.go index 31febe2543..eaf7ba602c 100644 --- a/models/org.go +++ b/models/org.go @@ -235,11 +235,7 @@ func DeleteOrganization(org *User) (err error) { } } - if err = sess.Commit(); err != nil { - return err - } - - return nil + return sess.Commit() } func deleteOrg(e *xorm.Session, u *User) error { |