diff --git a/services/context/group.go b/services/context/group.go index 070f15ef2f..cdd55ad16d 100644 --- a/services/context/group.go +++ b/services/context/group.go @@ -111,9 +111,7 @@ func groupAssignment(ctx *Context) { } } ownerAsOrg := (*organization.Organization)(group.Owner) - var ( - orgWideAdmin, orgWideOwner, isOwnedBy bool - ) + var orgWideAdmin, orgWideOwner, isOwnedBy bool if ctx.IsSigned { if orgWideAdmin, err = ownerAsOrg.IsOrgAdmin(ctx, ctx.Doer.ID); err != nil {