[React Native] Change `nil` to `Nil` because it's more correct

Summary: #OCD
This commit is contained in:
Alex Akers 2015-07-06 11:19:02 -07:00
parent c045c566e9
commit c065d98112
1 changed files with 3 additions and 3 deletions

View File

@ -249,12 +249,12 @@ NSDictionary *RCTMakeAndLogError(NSString *message, id toStringify, NSDictionary
BOOL RCTRunningInTestEnvironment(void)
{
static BOOL _isTestEnvironment = NO;
static BOOL isTestEnvironment = NO;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
_isTestEnvironment = (NSClassFromString(@"SenTestCase") != nil || NSClassFromString(@"XCTest") != nil);
isTestEnvironment = NSClassFromString(@"SenTestCase") || NSClassFromString(@"XCTest");
});
return _isTestEnvironment;
return isTestEnvironment;
}
BOOL RCTImageHasAlpha(CGImageRef image)