Skip to content

Commit 650d2b4

Browse files
committed
make clear we're discarding this value
1 parent 85e9f73 commit 650d2b4

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

Submariner/SBAppDelegate.swift

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,17 @@ fileprivate let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, catego
7878
configuration: nil,
7979
at: oldURL,
8080
options: storeOpts)
81-
try! self.persistentStoreCoordinator.migratePersistentStore(oldStore,
82-
to: newURL,
83-
options: storeOpts,
84-
type: .sqlite)
81+
// It's OK to ignore the return value, since it mutates the coordinator to include it
82+
_ = try! self.persistentStoreCoordinator.migratePersistentStore(oldStore,
83+
to: newURL,
84+
options: storeOpts,
85+
type: .sqlite)
8586
} else {
8687
// usual path, we aren't converting, but just using modern store
87-
try! self.persistentStoreCoordinator.addPersistentStore(type: .sqlite,
88-
configuration: nil,
89-
at: newURL,
90-
options: storeOpts)
88+
_ = try! self.persistentStoreCoordinator.addPersistentStore(type: .sqlite,
89+
configuration: nil,
90+
at: newURL,
91+
options: storeOpts)
9192
}
9293

9394
// #MARK: Init Core Data (managed object store)

0 commit comments

Comments
 (0)