mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 18:28:01 +01:00
Remove unnecessary else-block
This commit is contained in:
parent
fb1708e1af
commit
c3ff476ed6
@ -328,12 +328,12 @@ func showOrgProfile(ctx *middleware.Context) {
|
|||||||
}
|
}
|
||||||
ctx.Data["Repos"] = org.Repos
|
ctx.Data["Repos"] = org.Repos
|
||||||
} else {
|
} else {
|
||||||
if repos, err := models.GetRepositories(org.Id, false); err != nil {
|
repos, err := models.GetRepositories(org.Id, false)
|
||||||
|
if err != nil {
|
||||||
ctx.Handle(500, "GetRepositories", err)
|
ctx.Handle(500, "GetRepositories", err)
|
||||||
return
|
return
|
||||||
} else {
|
|
||||||
ctx.Data["Repos"] = repos
|
|
||||||
}
|
}
|
||||||
|
ctx.Data["Repos"] = repos
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := org.GetMembers(); err != nil {
|
if err := org.GetMembers(); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user