mirror of
https://github.com/immich-app/immich.git
synced 2025-12-24 01:11:32 +03:00
chore: lint
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user