chore(server): add switch case exhaustiveness lint (#29029)

This commit is contained in:
Mees Frensel
2026-06-17 12:04:41 +02:00
committed by GitHub
parent fbb0bc6e39
commit 430a2bbfd3
10 changed files with 44 additions and 15 deletions
@@ -163,6 +163,9 @@ export class DatabaseBackupService {
);
switch (bin) {
case 'pg_dump': {
break;
}
case 'pg_dumpall': {
args.push('--database');
break;
+2
View File
@@ -257,6 +257,8 @@ export class JobService extends BaseService {
}
break;
}
// no default
}
}
}
+3
View File
@@ -498,6 +498,9 @@ export class LibraryService extends BaseService {
const stat = stats[i];
const action = this.checkExistingAsset(asset, stat);
switch (action) {
case AssetSyncResult.DO_NOTHING: {
break;
}
case AssetSyncResult.OFFLINE: {
if (asset.status === AssetStatus.Trashed) {
trashedAssetIdsToOffline.push(asset.id);
+3 -1
View File
@@ -1138,7 +1138,9 @@ export class MetadataService extends BaseService {
case 3: {
return ExifOrientation.Rotate90CW;
}
default: {
return null;
}
}
return null;
}
}