File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Sources/CodableDatastore/Persistence/Disk Persistence/Snapshot Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -321,13 +321,11 @@ private enum SnapshotTaskLocals {
321321extension Snapshot {
322322 /// Load the datastore for the given key.
323323 func loadDatastore( for key: DatastoreKey , from iteration: SnapshotIteration ) -> ( DiskPersistence < AccessMode > . Datastore , DatastoreRootIdentifier ? ) {
324- let datastoreInfo : ( id: DatastoreIdentifier , root: DatastoreRootIdentifier ? ) = {
325- if let info = iteration. dataStores [ key] {
326- return ( info. id, info. root)
327- } else {
328- return ( DatastoreIdentifier ( name: key. rawValue) , nil )
329- }
330- } ( )
324+ let datastoreInfo = if let info = iteration. dataStores [ key] {
325+ ( id: info. id, root: info. root)
326+ } else {
327+ ( id: DatastoreIdentifier ( name: key. rawValue) , root: DatastoreRootIdentifier ? . none)
328+ }
331329
332330 if let datastore = datastores [ datastoreInfo. id] {
333331 return ( datastore, datastoreInfo. root)
You can’t perform that action at this time.
0 commit comments