Remove double condition

This commit is contained in:
Balazs Perlaki-Horvath 2024-03-10 01:49:41 +01:00
parent 113bdb55f0
commit 3512c1f855

View File

@ -24,12 +24,10 @@ enum BookmarksMigration {
return return
} }
for zimFile in zimFiles { for zimFile in zimFiles {
if zimFile.bookmarks.isEmpty == false {
migrateFrom(zimFile: zimFile, toZimFile: latest, using: context) migrateFrom(zimFile: zimFile, toZimFile: latest, using: context)
} }
} }
} }
}
/// Migrates the bookmars from an old to new zim file, /// Migrates the bookmars from an old to new zim file,
/// also updates the bookmark urls accordingly (based on the new zim id as the host of those URLs) /// also updates the bookmark urls accordingly (based on the new zim id as the host of those URLs)