summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
authorFlorian Kaiser <florian.kaiser@fnkr.net>2016-02-04 17:13:56 +0000
committerFlorian Kaiser <florian.kaiser@fnkr.net>2016-02-04 17:13:56 +0000
commitc3ff476ed67b69431e96fce8e5a16450976701f6 (patch)
tree9018dbe0e62afb375450229c440404391bfec4aa /routers/user
parentfb1708e1afefa86b11ef9464796896bcc8dbc7e8 (diff)
downloadgitea-c3ff476ed67b69431e96fce8e5a16450976701f6.tar.gz
gitea-c3ff476ed67b69431e96fce8e5a16450976701f6.zip
Remove unnecessary else-block
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/home.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/user/home.go b/routers/user/home.go
index fb3724714d..61cda33be2 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -328,12 +328,12 @@ func showOrgProfile(ctx *middleware.Context) {
}
ctx.Data["Repos"] = org.Repos
} 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)
return
- } else {
- ctx.Data["Repos"] = repos
}
+ ctx.Data["Repos"] = repos
}
if err := org.GetMembers(); err != nil {