diff options
author | Florian Kaiser <florian.kaiser@fnkr.net> | 2016-02-04 17:13:56 +0000 |
---|---|---|
committer | Florian Kaiser <florian.kaiser@fnkr.net> | 2016-02-04 17:13:56 +0000 |
commit | c3ff476ed67b69431e96fce8e5a16450976701f6 (patch) | |
tree | 9018dbe0e62afb375450229c440404391bfec4aa /routers | |
parent | fb1708e1afefa86b11ef9464796896bcc8dbc7e8 (diff) | |
download | gitea-c3ff476ed67b69431e96fce8e5a16450976701f6.tar.gz gitea-c3ff476ed67b69431e96fce8e5a16450976701f6.zip |
Remove unnecessary else-block
Diffstat (limited to 'routers')
-rw-r--r-- | routers/user/home.go | 6 |
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 { |