Skip to content

Commit

Permalink
Remove Force Try
Browse files Browse the repository at this point in the history
  • Loading branch information
heoblitz committed Mar 14, 2024
1 parent f3de906 commit 7965a26
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ final class MetaDataCache<Cache: AsyncKeyValueCaching>: AsyncKeyValueCaching whe
}

func store(entity: LPLinkMetadata, for key: URL) throws {
// swiftlint:disable force_try
let codedData = try! NSKeyedArchiver.archivedData(withRootObject: entity, requiringSecureCoding: true)
// swiftlint:enable force_try
let codedData = try NSKeyedArchiver.archivedData(withRootObject: entity, requiringSecureCoding: true)
try cache.store(entity: codedData, for: key)
}
}
Expand Down

0 comments on commit 7965a26

Please sign in to comment.