chore: code formatting

This commit is contained in:
github-actions[bot]
2022-03-10 03:04:40 +00:00
parent 96ea0beb95
commit 52953d380a
2 changed files with 10 additions and 7 deletions

View File

@@ -21,6 +21,7 @@ export async function indepth({login, data, imports, repositories, gpg}, {skippe
}
else
console.debug(`metrics/compute/${login}/plugins > languages > skipping import of gpg ${id}`)
}
catch (error) {
console.debug(`metrics/compute/${login}/plugins > languages > indepth > an error occured while importing gpg ${id}, skipping...`)
@@ -209,9 +210,11 @@ async function analyze({login, imports, data}, {results, path, categories = ["pr
if (results.verified) {
const sha = line.match(/[0-9a-f]{40}/)?.[0]
if (sha) {
pending.push(imports.run(`git verify-commit ${sha}`, {cwd:path, env:{LANG:"en_GB"}}, {log:false, prefixed:false})
.then(() => results.verified.signature++)
.catch(() => null))
pending.push(
imports.run(`git verify-commit ${sha}`, {cwd:path, env:{LANG:"en_GB"}}, {log:false, prefixed:false})
.then(() => results.verified.signature++)
.catch(() => null),
)
}
}
results.commits++