Skip to content

Commit 52953d3

Browse files
chore: code formatting
1 parent 96ea0be commit 52953d3

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

source/plugins/languages/analyzers.mjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export async function indepth({login, data, imports, repositories, gpg}, {skippe
2121
}
2222
else
2323
console.debug(`metrics/compute/${login}/plugins > languages > skipping import of gpg ${id}`)
24+
2425
}
2526
catch (error) {
2627
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
209210
if (results.verified) {
210211
const sha = line.match(/[0-9a-f]{40}/)?.[0]
211212
if (sha) {
212-
pending.push(imports.run(`git verify-commit ${sha}`, {cwd:path, env:{LANG:"en_GB"}}, {log:false, prefixed:false})
213-
.then(() => results.verified.signature++)
214-
.catch(() => null))
213+
pending.push(
214+
imports.run(`git verify-commit ${sha}`, {cwd:path, env:{LANG:"en_GB"}}, {log:false, prefixed:false})
215+
.then(() => results.verified.signature++)
216+
.catch(() => null),
217+
)
215218
}
216219
}
217220
results.commits++

tests/mocks/api/github/rest/users/listGpgKeysForUser.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ export default function({ faker }, target, that, [{ username }]) {
1616
emails: [
1717
{
1818
email: faker.internet.email(),
19-
verified: true
20-
}
21-
]
22-
}
19+
verified: true,
20+
},
21+
],
22+
},
2323
],
2424
})
2525
}

0 commit comments

Comments
 (0)