Skip to content

Commit a4f9f13

Browse files
committed
fix: linting errors
Signed-off-by: Uroš Marolt <uros@marolt.me>
1 parent c8bfec8 commit a4f9f13

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

services/apps/packages_worker/src/deps-dev/workflows/bootstrapOsspckgs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
workflowInfo,
66
} from '@temporalio/workflow'
77

8+
import { ingestScorecard } from '../../scorecard/workflows'
89
import type * as depsDevActivities from '../activities'
910

1011
import { ingestAdvisories } from './ingestAdvisories'
@@ -13,7 +14,6 @@ import { ingestDependentCounts } from './ingestDependentCounts'
1314
import { ingestPackages } from './ingestPackages'
1415
import { ingestRepos } from './ingestRepos'
1516
import { ingestVersions } from './ingestVersions'
16-
import { ingestScorecard } from '../../scorecard/workflows'
1717

1818
const { getLastSnapshot, probePartitionExists, resolveSnapshotDate } = proxyActivities<
1919
typeof depsDevActivities

services/apps/packages_worker/src/scorecard/workflows/ingestScorecard.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,12 @@ export async function ingestScorecard(opts: {
106106
const repoTotalFiles = repoFileNames.length
107107

108108
if (repoTotalFiles === 0) {
109-
await mergeStagingToTable({ jobId: reposExport.jobId, mergeSql: [], tableNames: [], isFinal: true })
109+
await mergeStagingToTable({
110+
jobId: reposExport.jobId,
111+
mergeSql: [],
112+
tableNames: [],
113+
isFinal: true,
114+
})
110115
} else {
111116
const repoTotalRows = repoRowCounts.reduce((a, b) => a + b, 0)
112117
const repoFilesPerChunk =
@@ -172,7 +177,12 @@ export async function ingestScorecard(opts: {
172177
const checkTotalFiles = checkFileNames.length
173178

174179
if (checkTotalFiles === 0) {
175-
await mergeStagingToTable({ jobId: checksExport.jobId, mergeSql: [], tableNames: [], isFinal: true })
180+
await mergeStagingToTable({
181+
jobId: checksExport.jobId,
182+
mergeSql: [],
183+
tableNames: [],
184+
isFinal: true,
185+
})
176186
return
177187
}
178188

0 commit comments

Comments
 (0)