Fix inconsistencies in variable names for struct methods (#13561)

Этот коммит содержится в:
Jesús Espino
2020-01-07 10:47:03 +01:00
коммит произвёл GitHub
родитель d8ac09b302
Коммит 092e53ace2
22 изменённых файлов: 391 добавлений и 391 удалений

Просмотреть файл

@@ -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)
}