mirror of
https://github.com/go-gitea/gitea
synced 2025-01-25 00:54:27 +00:00
api(refactor): remove unnessesary condition from orgAssignment
This commit is contained in:
parent
d5a1ce1dfd
commit
3a5911af1d
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user