Skip to content

Commit d517a64

Browse files
committed
refactor(backups): Using IsEmpty instead of Count==0
1 parent 0cfe338 commit d517a64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/AgDatabase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public List<BackupMetadata> RecentBackups()
141141
});
142142

143143
// find all backups in that chain
144-
if (fullBackupLsnBag.Count == 0)
144+
if (fullBackupLsnBag.IsEmpty)
145145
throw new Exception($"Could not find any full backups for DB '{Name}'");
146146

147147
var databaseBackupLsn = fullBackupLsnBag.Max();

0 commit comments

Comments
 (0)