mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Use Nil for class instead of nil (#589)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user