chore: code formatting
This commit is contained in:
@@ -60,7 +60,8 @@ async function pickOnlyGithubPublicRepos ({projects, axios, login, limit}) {
|
|||||||
const result = []
|
const result = []
|
||||||
|
|
||||||
for await (const project of projects) {
|
for await (const project of projects) {
|
||||||
if (result.length >= limit) break
|
if (result.length >= limit)
|
||||||
|
break
|
||||||
try {
|
try {
|
||||||
console.debug(`metrics/compute/${login}/plugins > wakatime > checking 'https://github.com/${login}/${project.name}'`)
|
console.debug(`metrics/compute/${login}/plugins > wakatime > checking 'https://github.com/${login}/${project.name}'`)
|
||||||
await axios.head(`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
|
return result
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user