diff options
author | Unknwon <u@gogs.io> | 2018-12-01 21:41:30 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2018-12-01 21:41:30 -0500 |
commit | 69c1cd3f381b19b988a6af51a8e38303f216b001 (patch) | |
tree | 5b9ce7c21380d8f2a2338516bba55cc75dbac60f /models/org.go | |
parent | ce13fbb98a68a39b9b08f07bf7c7444e1e869451 (diff) |
routes/api: change status handle to new style
Also fixed one bug that did not catch team not found error.
Diffstat (limited to 'models/org.go')
-rw-r--r-- | models/org.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/models/org.go b/models/org.go index f5967cea..e3744c8a 100644 --- a/models/org.go +++ b/models/org.go @@ -15,8 +15,7 @@ import ( ) var ( - ErrOrgNotExist = errors.New("Organization does not exist") - ErrTeamNotExist = errors.New("Team does not exist") + ErrOrgNotExist = errors.New("Organization does not exist") ) // IsOwnedBy returns true if given user is in the owner team. |