chore: lint

This commit is contained in:
izzy
2025-11-21 18:02:27 +00:00
parent 0940c313ac
commit 86d8e1a092
6 changed files with 11 additions and 11 deletions

View File

@@ -267,8 +267,8 @@ export async function listBackups({ storage }: Pick<BackupRepos, 'storage'>): Pr
const backupsFolder = StorageCore.getBaseFolder(StorageFolder.Backups);
const files = await storage.readdir(backupsFolder);
return files
.filter(isValidBackupName)
.sort((a, b) => (a.startsWith('uploaded-') !== b.startsWith('uploaded-') ? 1 : a.localeCompare(b)))
.filter((fn) => isValidBackupName(fn))
.sort((a, b) => (a.startsWith('uploaded-') === b.startsWith('uploaded-') ? a.localeCompare(b) : 1))
.toReversed();
}