Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Fix create function in DataStoreAccessor+Generics
Browse files Browse the repository at this point in the history
  • Loading branch information
albertodebortoli committed May 28, 2017
1 parent 7d8ee15 commit c71e8d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ extension DataStoreReadWriteAccessor {
*/
public func create<ItemType: MutableDataStoreItem>() throws -> ItemType {
guard let item = createItem(ofMutableType: ItemType.self) as? ItemType else {
throw DataStoreError.couldNotCreateItemOfType(ItemType)
throw DataStoreError.couldNotCreateItemOfType(ItemType.self)
}
return item
}
Expand Down

0 comments on commit c71e8d1

Please sign in to comment.