Merge pull request #11 from blide/master

Add omitempty flag to InfoRequest.Avatar
This commit is contained in:
Ilyas Salikhov 2018-09-09 20:04:12 +03:00 committed by GitHub
commit 1ece05189c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,7 +148,7 @@ type (
InfoRequest struct { InfoRequest struct {
Name string `url:"name,omitempty" json:"name"` Name string `url:"name,omitempty" json:"name"`
Avatar string `url:"avatar_url,omitempty" json:"avatar_url"` Avatar string `url:"avatar_url,omitempty" json:"avatar_url,omitempty"`
Roles []string `url:"roles,omitempty" json:"roles"` Roles []string `url:"roles,omitempty" json:"roles"`
} }