Skip to content

Commit

Permalink
Remove try from asynchronous add storage example
Browse files Browse the repository at this point in the history
  • Loading branch information
iby committed Mar 3, 2019
1 parent f59e8be commit 2a356d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ if you do so, any model mismatch will be thrown as an error.

In general though, if migrations are expected the asynchronous variant `addStorage(_:completion:)` method is recommended instead:
```swift
let migrationProgress: Progress? = try dataStack.addStorage(
let migrationProgress: Progress? = dataStack.addStorage(
SQLiteStore(
fileName: "MyStore.sqlite",
configuration: "Config2"
Expand Down

0 comments on commit 2a356d9

Please sign in to comment.