Skip to content

Commit

Permalink
Remove unnecessary wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
PinYuanChen committed Oct 14, 2024
1 parent 008becd commit c4aa3d5
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ public class CodableMorseRecordStore: MorseRecordStore {
}

public func retrieve(completion: @escaping RetrievalCompletion) {
guard (try? Data(contentsOf: storeURL)) != nil else {
return completion(.success(.none))
}

let storeURL = self.storeURL
queue.async {
guard let data = try? Data(contentsOf: storeURL) else {
Expand Down

0 comments on commit c4aa3d5

Please sign in to comment.