-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix remove team member issue #3566
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3566 +/- ##
==========================================
+ Coverage 35.78% 35.79% +0.01%
==========================================
Files 285 285
Lines 40850 40863 +13
==========================================
+ Hits 14617 14628 +11
- Misses 24065 24067 +2
Partials 2168 2168
Continue to review full report at Codecov.
|
@@ -523,6 +516,16 @@ func RemoveOrgUser(orgID, userID int64) error { | |||
return sess.Commit() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put sess.Commit()
out of the function is a good habit I think.
16bacab
to
cb2fcbc
Compare
@lunny You are right, changed. |
models/org_team.go
Outdated
@@ -10,6 +10,7 @@ import ( | |||
"strings" | |||
|
|||
"code.gitea.io/gitea/modules/log" | |||
"github.com/go-xorm/xorm" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an empty line between local and external package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
coding style for import package
Put sess.Commit() out of the RemoveOrgUser function Add an empty line to separate import packages
cb2fcbc
to
53a6ccb
Compare
@appleboy Updated. |
@xwjdsh can you backport this to |
Put sess.Commit() out of the RemoveOrgUser function Add an empty line to separate import packages Signed-off-by: Wendell Sun <iwendellsun@gmail.com>
Fixes #3410