Commit 3b12ba67 authored by Andrew Twyman's avatar Andrew Twyman

Simplified sample code suggested by @steipete.

parent 670af189
......@@ -82,7 +82,7 @@
}
- (nonnull NSNumber *)isMainThread {
return [NSNumber numberWithBool:[NSThread isMainThread]];
return @(NSThread.isMainThread);
}
@end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment