diff options
author | Unknwon <u@gogs.io> | 2017-06-03 07:26:09 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-06-03 07:26:09 -0400 |
commit | 2478b874320ed91d4424dea42a40aacbd2b1ce1c (patch) | |
tree | dbaf2a482ffc43b5013aa08c83c686698ab181c1 /routers/api/v1/org/team.go | |
parent | e33c714073cc65f814bacf604a84cd2741951afa (diff) |
Refactoring: rename ctx -> c
Diffstat (limited to 'routers/api/v1/org/team.go')
-rw-r--r-- | routers/api/v1/org/team.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/api/v1/org/team.go b/routers/api/v1/org/team.go index 8b0f4008..a952ea53 100644 --- a/routers/api/v1/org/team.go +++ b/routers/api/v1/org/team.go @@ -11,10 +11,10 @@ import ( "github.com/gogits/gogs/routers/api/v1/convert" ) -func ListTeams(ctx *context.APIContext) { - org := ctx.Org.Organization +func ListTeams(c *context.APIContext) { + org := c.Org.Organization if err := org.GetTeams(); err != nil { - ctx.Error(500, "GetTeams", err) + c.Error(500, "GetTeams", err) return } @@ -22,5 +22,5 @@ func ListTeams(ctx *context.APIContext) { for i := range org.Teams { apiTeams[i] = convert.ToTeam(org.Teams[i]) } - ctx.JSON(200, apiTeams) + c.JSON(200, apiTeams) } |