Skip to content

Commit

Permalink
remove too strict assert - we still want nil to pass through.
Browse files Browse the repository at this point in the history
  • Loading branch information
DenTelezhkin committed Dec 7, 2014
1 parent 93a9c94 commit 681e86b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions EasyMapping/EKMapper.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ @implementation EKMapper

+ (id)objectFromExternalRepresentation:(NSDictionary *)externalRepresentation withMapping:(EKObjectMapping *)mapping
{
NSParameterAssert([externalRepresentation isKindOfClass:[NSDictionary class]]);
NSParameterAssert([mapping isKindOfClass:[EKObjectMapping class]]);

if (![externalRepresentation isKindOfClass:[NSDictionary class]] ||
Expand Down Expand Up @@ -82,7 +81,6 @@ + (id)fillObject:(id)object fromExternalRepresentation:(NSDictionary *)externalR
+ (NSArray *)arrayOfObjectsFromExternalRepresentation:(NSArray *)externalRepresentation
withMapping:(EKObjectMapping *)mapping
{
NSParameterAssert([externalRepresentation isKindOfClass:[NSArray class]]);
NSParameterAssert([mapping isKindOfClass:[EKObjectMapping class]]);

if (![externalRepresentation isKindOfClass:[NSArray class]] ||
Expand Down

0 comments on commit 681e86b

Please sign in to comment.