Fix inconsistencies in variable names for struct methods (#13561)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d8ac09b302
Коммит
092e53ace2
@@ -271,34 +271,34 @@ func (o *Team) Sanitize() {
|
||||
o.InviteId = ""
|
||||
}
|
||||
|
||||
func (t *Team) Patch(patch *TeamPatch) {
|
||||
func (o *Team) Patch(patch *TeamPatch) {
|
||||
if patch.DisplayName != nil {
|
||||
t.DisplayName = *patch.DisplayName
|
||||
o.DisplayName = *patch.DisplayName
|
||||
}
|
||||
|
||||
if patch.Description != nil {
|
||||
t.Description = *patch.Description
|
||||
o.Description = *patch.Description
|
||||
}
|
||||
|
||||
if patch.CompanyName != nil {
|
||||
t.CompanyName = *patch.CompanyName
|
||||
o.CompanyName = *patch.CompanyName
|
||||
}
|
||||
|
||||
if patch.AllowedDomains != nil {
|
||||
t.AllowedDomains = *patch.AllowedDomains
|
||||
o.AllowedDomains = *patch.AllowedDomains
|
||||
}
|
||||
|
||||
if patch.AllowOpenInvite != nil {
|
||||
t.AllowOpenInvite = *patch.AllowOpenInvite
|
||||
o.AllowOpenInvite = *patch.AllowOpenInvite
|
||||
}
|
||||
|
||||
if patch.GroupConstrained != nil {
|
||||
t.GroupConstrained = patch.GroupConstrained
|
||||
o.GroupConstrained = patch.GroupConstrained
|
||||
}
|
||||
}
|
||||
|
||||
func (t *Team) IsGroupConstrained() bool {
|
||||
return t.GroupConstrained != nil && *t.GroupConstrained
|
||||
func (o *Team) IsGroupConstrained() bool {
|
||||
return o.GroupConstrained != nil && *o.GroupConstrained
|
||||
}
|
||||
|
||||
func (t *TeamPatch) ToJson() string {
|
||||
|
||||
Ссылка в новой задаче
Block a user