mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	golint fixed for modules/auth
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user