Skip to content

Commit

Permalink
Use Nil for class instead of nil (TextureGroup#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adlai-Holler authored and bernieperez committed Apr 25, 2018
1 parent c0aa245 commit 408a46e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Private/ASInternalHelpers.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 408a46e

Please sign in to comment.