mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Github: fix Gists after using 'v3' media type
This commit is contained in:
@@ -42,7 +42,7 @@ class GithubGistRaw implements DataConstructor {
|
||||
|
||||
@Nullable public Map<String, GistFileRaw> files;
|
||||
|
||||
@Nullable public GithubUserRaw user;
|
||||
@Nullable public GithubUserRaw owner;
|
||||
|
||||
@Nullable public Date createdAt;
|
||||
|
||||
@@ -66,7 +66,7 @@ class GithubGistRaw implements DataConstructor {
|
||||
@SuppressWarnings("ConstantConditions")
|
||||
@NotNull
|
||||
public GithubGist createGist() {
|
||||
GithubUser user = this.user == null ? null : this.user.createUser();
|
||||
GithubUser user = this.owner == null ? null : this.owner.createUser();
|
||||
|
||||
List<GithubGist.GistFile> files = new ArrayList<GithubGist.GistFile>();
|
||||
for (Map.Entry<String, GistFileRaw> entry : this.files.entrySet()) {
|
||||
|
||||
Reference in New Issue
Block a user