mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
[React Native] Change nil
to Nil
because it's more correct
Summary: #OCD
This commit is contained in:
parent
c045c566e9
commit
c065d98112
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user