aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Kaiser <florian.kaiser@fnkr.net>2016-01-31 19:08:20 +0000
committerFlorian Kaiser <florian.kaiser@fnkr.net>2016-01-31 19:08:20 +0000
commitfdad23444563cb4318b1715b4b1bc17d5354d01f (patch)
tree07c61edb55166fdc7382ebb9d6744280901fe41e
parentbba1847a8eb08dfc5a3302a23ee210b21e0e71d3 (diff)
downloadgitea-fdad23444563cb4318b1715b4b1bc17d5354d01f.tar.gz
gitea-fdad23444563cb4318b1715b4b1bc17d5354d01f.zip
Remove unnecessary comments
-rw-r--r--routers/org/teams.go1
-rw-r--r--routers/user/home.go2
2 files changed, 1 insertions, 2 deletions
diff --git a/routers/org/teams.go b/routers/org/teams.go
index 63618b9858..e4a6afcf45 100644
--- a/routers/org/teams.go
+++ b/routers/org/teams.go
@@ -28,7 +28,6 @@ func Teams(ctx *middleware.Context) {
ctx.Data["Title"] = org.FullName
ctx.Data["PageIsOrgTeams"] = true
- // org.Teams is already loaded by middleware
for _, t := range org.Teams {
if err := t.GetMembers(); err != nil {
ctx.Handle(500, "GetMembers", err)
diff --git a/routers/user/home.go b/routers/user/home.go
index 6e2135dca2..c49b923285 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -335,7 +335,7 @@ func showOrgProfile(ctx *middleware.Context) {
}
ctx.Data["Members"] = org.Members
- ctx.Data["Teams"] = org.Teams // already loaded by middleware
+ ctx.Data["Teams"] = org.Teams
ctx.HTML(200, ORG_HOME)
}