mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	api(refactor): remove unnessesary condition from orgAssignment
This commit is contained in:
		@@ -579,9 +579,6 @@ func orgAssignment(args ...bool) func(ctx *context.APIContext) {
 | 
				
			|||||||
				ctx.Org = &context.APIOrganization{}
 | 
									ctx.Org = &context.APIOrganization{}
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			ctx.Org.Organization = (*organization.Organization)(ctx.ContextUser)
 | 
								ctx.Org.Organization = (*organization.Organization)(ctx.ContextUser)
 | 
				
			||||||
		} else {
 | 
					 | 
				
			||||||
			// ContextUser is an individual User
 | 
					 | 
				
			||||||
			return
 | 
					 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		var err error
 | 
							var err error
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user