1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-10 01:34:43 +00:00

api(refactor): remove unnessesary condition from orgAssignment

This commit is contained in:
eyad-hussein 2024-07-14 11:49:19 +03:00
parent d5a1ce1dfd
commit 3a5911af1d

View File

@ -579,9 +579,6 @@ func orgAssignment(args ...bool) func(ctx *context.APIContext) {
ctx.Org = &context.APIOrganization{}
}
ctx.Org.Organization = (*organization.Organization)(ctx.ContextUser)
} else {
// ContextUser is an individual User
return
}
var err error