mirror of https://github.com/gogs/gogs.git
autofix: fix nested `if` with `else if` (#6807)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>pull/6811/head
parent
09dbbf9a69
commit
2466da4e82
|
@ -73,10 +73,8 @@ func HandleOrgAssignment(c *Context, args ...bool) {
|
|||
c.Org.IsMember = true
|
||||
c.Org.IsTeamMember = true
|
||||
c.Org.IsTeamAdmin = true
|
||||
} else {
|
||||
if org.IsOrgMember(c.User.ID) {
|
||||
c.Org.IsMember = true
|
||||
}
|
||||
} else if org.IsOrgMember(c.User.ID) {
|
||||
c.Org.IsMember = true
|
||||
}
|
||||
} else {
|
||||
// Fake data.
|
||||
|
|
Loading…
Reference in New Issue