Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
support @discardableResult in API
Browse files Browse the repository at this point in the history
  • Loading branch information
hongxinhope committed Sep 18, 2016
1 parent f674126 commit 6278b59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ManagedObjectAdapter/ManagedObjectAdapter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public extension ManagedObjectSerializing {
return model
}

@discardableResult
public func toManagedObject(in context: NSManagedObjectContext) -> NSManagedObject? {
let entityName = type(of: self).managedObjectEntityName()
let valueTransformers = type(of: self).valueTransformersByPropertyKey()
Expand Down

0 comments on commit 6278b59

Please sign in to comment.