Merge pull request #2686 from mindv0rtex/patch-1

Make use of `loadJson` inside `loadGithubUser`
This commit is contained in:
Ilya Kantor 2021-08-14 23:42:16 +03:00 committed by GitHub
commit a6c0fad468
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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