chore: code formatting

This commit is contained in:
github-actions[bot]
2022-04-23 23:18:43 +00:00
parent 73cd43c18f
commit 4c98629bbc
130 changed files with 1839 additions and 1788 deletions

View File

@@ -17,7 +17,7 @@ export default async function({login, data, graphql, q, imports, queries, accoun
let pushed = 0
do {
console.debug(`metrics/compute/${login}/plugins > gists > retrieving gists after ${cursor}`)
const {user:{gists:{edges, nodes, totalCount}}} = await graphql(queries.gists({login, after:cursor ? `after: "${cursor}"` : ""}))
const {user: {gists: {edges, nodes, totalCount}}} = await graphql(queries.gists({login, after: cursor ? `after: "${cursor}"` : ""}))
cursor = edges?.[edges?.length - 1]?.cursor
gists.push(...nodes)
gists.totalCount = totalCount
@@ -41,12 +41,12 @@ export default async function({login, data, graphql, q, imports, queries, accoun
}
//Results
return {totalCount:gists.totalCount, stargazers, forks, files, comments}
return {totalCount: gists.totalCount, stargazers, forks, files, comments}
}
//Handle errors
catch (error) {
if (error.error?.message)
throw error
throw {error:{message:"An error occured", instance:error}}
throw {error: {message: "An error occured", instance: error}}
}
}