mirror of
https://github.com/tenrok/axios.git
synced 2026-05-15 11:59:42 +03:00
style: turn '()=>' into '() =>' (#6324)
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ async function getContributors(user, repo, maxCount = 1) {
|
||||
{ params: { per_page: maxCount } }
|
||||
)).data;
|
||||
|
||||
return Promise.all(contributors.map(async (contributor)=> {
|
||||
return Promise.all(contributors.map(async (contributor) => {
|
||||
return {...contributor, ...(await axios.get(
|
||||
`https://api.github.com/users/${encodeURIComponent(contributor.login)}`
|
||||
)).data};
|
||||
|
||||
Reference in New Issue
Block a user