Merge pull request #2686 from mindv0rtex/patch-1
Make use of `loadJson` inside `loadGithubUser`
This commit is contained in:
commit
a6c0fad468
1 changed files with 1 additions and 2 deletions
|
@ -332,8 +332,7 @@ function loadJson(url) {
|
|||
}
|
||||
|
||||
function loadGithubUser(name) {
|
||||
return fetch(`https://api.github.com/users/${name}`)
|
||||
.then(response => response.json());
|
||||
return loadJson(`https://api.github.com/users/${name}`);
|
||||
}
|
||||
|
||||
function showAvatar(githubUser) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue