run prettier formatting

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2021-08-09 11:42:22 +02:00
parent 467b758a7a
commit 923491eece
311 changed files with 1449 additions and 1667 deletions
@@ -117,8 +117,8 @@ export class Cobertura implements Converter {
const lines = [classLines, methodLines].flat().filter(Boolean);
const lineHits = lines.map(l => {
return {
number: parseInt((l.$.number as unknown) as string, 10),
hits: parseInt((l.$.hits as unknown) as string, 10),
number: parseInt(l.$.number as unknown as string, 10),
hits: parseInt(l.$.hits as unknown as string, 10),
'condition-coverage': l.$['condition-coverage'],
branch: l.$.branch,
};
@@ -189,12 +189,8 @@ export const makeRouter = async (
throw new InputError(`Unsupported coverage type '${coverageType}`);
}
const {
sourceLocation,
vcs,
scmFiles,
body,
} = await utils.processCoveragePayload(entityLookup, req);
const { sourceLocation, vcs, scmFiles, body } =
await utils.processCoveragePayload(entityLookup, req);
const files = converter.convert(body, scmFiles);
if (!files || files.length === 0) {