Skip to content

Commit 9629d7c

Browse files
committed
Merge pull request Mantle#23 from grgcombs/pullReq/noCompareNullOnType
Eliminate the non-null comparison for the attributes.type char array as it always return true.
2 parents 3d36e5d + 55f516d commit 9629d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MTLManagedObjectAdapter/MTLManagedObjectAdapter.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ - (NSDictionary *)valueTransformersForModelClass:(Class)modelClass {
751751
transformer = [self.class transformerForModelPropertiesOfClass:attributes->objectClass];
752752
}
753753

754-
if (transformer == nil && attributes->type != NULL) {
754+
if (transformer == nil) {
755755
transformer = [self.class transformerForModelPropertiesOfObjCType:attributes->type];
756756
}
757757

0 commit comments

Comments
 (0)