Update contributors short-circuit logic

Co-authored-by: rex.tsou <akccakccwww@gmail.com>
master
James 5 years ago committed by GitHub
parent 31d5ad8974
commit fac4c47066
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,6 +19,8 @@ function getContributors(page) {
}
});
container.append(contributorList.join(''));
// If the length of the data is < 100, we know we are processing the last page of data.
if (data.length < 100) return;
getContributors(page + 1);
});
}

Loading…
Cancel
Save