Use Nil for class instead of nil (#589)

This commit is contained in:
Adlai Holler
2017-09-27 20:12:18 -07:00
committed by GitHub
parent a103bab00a
commit 5186a4317e

View File

@@ -113,14 +113,14 @@ Class _Nullable ASGetClassFromType(const char * _Nullable type)
{
// Class types all start with @"
if (type == NULL || strncmp(type, "@\"", 2) != 0) {
return nil;
return Nil;
}
// Ensure length >= 3
size_t typeLength = strlen(type);
if (typeLength < 3) {
ASDisplayNodeCFailAssert(@"Got invalid type-encoding: %s", type);
return nil;
return Nil;
}
// Copy type[2..(end-1)]. So @"UIImage" -> UIImage