diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2016-11-27 14:03:59 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2016-11-27 21:39:06 +0800 |
commit | ec87a75c000d52bfc2a8dcfc7097c14fe872c376 (patch) | |
tree | d849fb1070fe15136538404127099e9a7e0dd302 /routers/api/v1/repo | |
parent | e6da2cf2cbff4d550cf938548233a59ceef6528e (diff) | |
download | gitea-ec87a75c000d52bfc2a8dcfc7097c14fe872c376.tar.gz gitea-ec87a75c000d52bfc2a8dcfc7097c14fe872c376.zip |
golint fixed for modules/auth
Diffstat (limited to 'routers/api/v1/repo')
-rw-r--r-- | routers/api/v1/repo/repo.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go index 6ae513db16..1fa0b14b40 100644 --- a/routers/api/v1/repo/repo.go +++ b/routers/api/v1/repo/repo.go @@ -177,8 +177,8 @@ func Migrate(ctx *context.APIContext, form auth.MigrateRepoForm) { ctxUser := ctx.User // Not equal means context user is an organization, // or is another user/organization if current user is admin. - if form.Uid != ctxUser.ID { - org, err := models.GetUserByID(form.Uid) + if form.UID != ctxUser.ID { + org, err := models.GetUserByID(form.UID) if err != nil { if models.IsErrUserNotExist(err) { ctx.Error(422, "", err) |