update code style

master
James Glenn 5 years ago
parent a797064fb8
commit 0f308fa784

@ -1,6 +1,6 @@
function getContributors(page) { function getContributors(page) {
if (window.jQuery) { if (window.jQuery) {
const container = $("#contributors"); const container = $('#contributors');
jQuery.ajax(`https://api.github.com/repos/mikebryant/ac-nh-turnip-prices/contributors?page=${page}`, {}) jQuery.ajax(`https://api.github.com/repos/mikebryant/ac-nh-turnip-prices/contributors?page=${page}`, {})
.done(function (data) { .done(function (data) {
if (data.length === 0) { if (data.length === 0) {
@ -13,10 +13,10 @@ function getContributors(page) {
`<a href="${contributor.html_url}">${contributor.login}</a>` `<a href="${contributor.html_url}">${contributor.login}</a>`
); );
if (idx < data.length - 1) { if (idx < data.length - 1) {
contributorList.push(", "); contributorList.push(', ');
} }
}); });
container.append(contributorList.join("")); container.append(contributorList.join(''));
getContributors(page + 1); getContributors(page + 1);
}); });
} }

Loading…
Cancel
Save