chore: code formatting

This commit is contained in:
github-actions[bot]
2022-05-20 02:48:41 +00:00
parent 0e80df951b
commit dba0624328

View File

@@ -60,7 +60,8 @@ async function pickOnlyGithubPublicRepos ({projects, axios, login, limit}) {
const result = []
for await (const project of projects) {
if (result.length >= limit) break
if (result.length >= limit)
break
try {
console.debug(`metrics/compute/${login}/plugins > wakatime > checking 'https://github.com/${login}/${project.name}'`)
await axios.head(`https://github.com/${login}/${project.name}`)
@@ -72,6 +73,7 @@ async function pickOnlyGithubPublicRepos ({projects, axios, login, limit}) {
}
}
if (result.length === 0) return undefined
if (result.length === 0)
return undefined
return result
}