mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-03 22:52:28 +01:00
Remove unnecessary comments
This commit is contained in:
parent
bba1847a8e
commit
fdad234445
2 changed files with 1 additions and 2 deletions
|
@ -28,7 +28,6 @@ func Teams(ctx *middleware.Context) {
|
||||||
ctx.Data["Title"] = org.FullName
|
ctx.Data["Title"] = org.FullName
|
||||||
ctx.Data["PageIsOrgTeams"] = true
|
ctx.Data["PageIsOrgTeams"] = true
|
||||||
|
|
||||||
// org.Teams is already loaded by middleware
|
|
||||||
for _, t := range org.Teams {
|
for _, t := range org.Teams {
|
||||||
if err := t.GetMembers(); err != nil {
|
if err := t.GetMembers(); err != nil {
|
||||||
ctx.Handle(500, "GetMembers", err)
|
ctx.Handle(500, "GetMembers", err)
|
||||||
|
|
|
@ -335,7 +335,7 @@ func showOrgProfile(ctx *middleware.Context) {
|
||||||
}
|
}
|
||||||
ctx.Data["Members"] = org.Members
|
ctx.Data["Members"] = org.Members
|
||||||
|
|
||||||
ctx.Data["Teams"] = org.Teams // already loaded by middleware
|
ctx.Data["Teams"] = org.Teams
|
||||||
|
|
||||||
ctx.HTML(200, ORG_HOME)
|
ctx.HTML(200, ORG_HOME)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue