Skip to content

Commit 2a356d9

Browse files
committed
Remove try from asynchronous add storage example
1 parent f59e8be commit 2a356d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ if you do so, any model mismatch will be thrown as an error.
524524

525525
In general though, if migrations are expected the asynchronous variant `addStorage(_:completion:)` method is recommended instead:
526526
```swift
527-
let migrationProgress: Progress? = try dataStack.addStorage(
527+
let migrationProgress: Progress? = dataStack.addStorage(
528528
SQLiteStore(
529529
fileName: "MyStore.sqlite",
530530
configuration: "Config2"

0 commit comments

Comments
 (0)