Fix inconsistencies in variable names for struct methods (#13561)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d8ac09b302
Коммит
092e53ace2
@@ -42,12 +42,12 @@ func (i *GuestsInvite) IsValid() *AppError {
|
||||
|
||||
// GuestsInviteFromJson will decode the input and return a GuestsInvite
|
||||
func GuestsInviteFromJson(data io.Reader) *GuestsInvite {
|
||||
var invite *GuestsInvite
|
||||
json.NewDecoder(data).Decode(&invite)
|
||||
return invite
|
||||
var i *GuestsInvite
|
||||
json.NewDecoder(data).Decode(&i)
|
||||
return i
|
||||
}
|
||||
|
||||
func (invite *GuestsInvite) ToJson() string {
|
||||
b, _ := json.Marshal(invite)
|
||||
func (i *GuestsInvite) ToJson() string {
|
||||
b, _ := json.Marshal(i)
|
||||
return string(b)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user