chore: lint

This commit is contained in:
izzy 2025-12-01 10:49:07 +00:00
parent a7fd19db52
commit 8b1ba11e0b
No known key found for this signature in database
GPG Key ID: 5059F398521BB0F6

View File

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