mirror of
https://github.com/gogs/gogs.git
synced 2025-12-22 16:20:14 +01:00
Refactoring: rename ctx -> c
This commit is contained in:
@@ -13,11 +13,11 @@ import (
|
||||
)
|
||||
|
||||
// https://github.com/gogits/go-gogs-client/wiki/Administration-Repositories#create-a-new-repository
|
||||
func CreateRepo(ctx *context.APIContext, form api.CreateRepoOption) {
|
||||
owner := user.GetUserByParams(ctx)
|
||||
if ctx.Written() {
|
||||
func CreateRepo(c *context.APIContext, form api.CreateRepoOption) {
|
||||
owner := user.GetUserByParams(c)
|
||||
if c.Written() {
|
||||
return
|
||||
}
|
||||
|
||||
repo.CreateUserRepo(ctx, owner, form)
|
||||
repo.CreateUserRepo(c, owner, form)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user