summaryrefslogtreecommitdiffstats
path: root/models/org.go
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2017-09-19 01:08:30 -0700
committerLauris BH <lauris@nix.lv>2017-09-19 11:08:30 +0300
commit4cb9394a978af75794d43accc231b6649f2884bc (patch)
tree06df979841396c51d292eb5a078ece1c8af11fd9 /models/org.go
parentd155d0e6656df7b7699a4a6b60889689d6678ef5 (diff)
downloadgitea-4cb9394a978af75794d43accc231b6649f2884bc.tar.gz
gitea-4cb9394a978af75794d43accc231b6649f2884bc.zip
Fix lint errors (#2547)
Diffstat (limited to 'models/org.go')
-rw-r--r--models/org.go6
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 {