chore: lint

This commit is contained in:
izzy
2025-12-01 11:51:49 +00:00
parent 01f96de3e5
commit 1daf1b471f
3 changed files with 6 additions and 4 deletions

View File

@@ -608,7 +608,7 @@ export const utils = {
'-s',
'1',
'{}',
'\;',
';',
]).promise;
},

View File

@@ -224,7 +224,7 @@ export class IntegrityService extends BaseService {
}
}
if (orphanedFiles.size) {
if (orphanedFiles.size > 0) {
await this.integrityReportRepository.create(
[...orphanedFiles].map((path) => ({
type: IntegrityReportType.OrphanFile,
@@ -494,7 +494,9 @@ export class IntegrityService extends BaseService {
const results = await Promise.all(
paths.map(async ({ reportId, path, checksum }) => {
if (!checksum) return reportId;
if (!checksum) {
return reportId;
}
try {
const hash = createHash('sha1');

View File

@@ -27,7 +27,7 @@
let { data }: Props = $props();
let integrityReport: MaintenanceIntegrityReportSummaryResponseDto | undefined = $state(data.integrityReport);
let integrityReport: MaintenanceIntegrityReportSummaryResponseDto = $state(data.integrityReport);
const TYPES: IntegrityReportType[] = [
IntegrityReportType.OrphanFile,