Remove nonnull and nuulable annotations in ASViewController. Travis don't recognize them (yet).

This commit is contained in:
Huy Nguyen 2015-09-17 16:03:02 +03:00
parent 1ef1b647c9
commit a864341710
2 changed files with 4 additions and 2 deletions

View File

@ -11,8 +11,9 @@
@interface ASViewController : UIViewController
@property (nonatomic, strong, readonly, nonnull) ASDisplayNode *node;
@property (nonatomic, strong, readonly) ASDisplayNode *node;
- (nullable instancetype)initWithNode:(nonnull ASDisplayNode *)node;
//TODO Use nonnull annotation late on. Travis doesn't recognize it (yet).
- (instancetype)initWithNode:(ASDisplayNode *)node;
@end

View File

@ -18,6 +18,7 @@
return nil;
}
ASDisplayNodeAssertNotNil(node, @"Node must not be nil");
ASDisplayNodeAssertTrue(!node.layerBacked);
_node = node;