mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-20 19:19:52 +00:00
Calling boolValue instead of converting NSNumber
Problem found with static analysis code of Xcode 9.3.
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
if (ENABLE_DEBUG_SHAPES) {
|
||||
[self.wrapperLayer addSublayer:DEBUG_Center];
|
||||
}
|
||||
if (layer.startFrame) {
|
||||
if ([layer.startFrame boolValue]) {
|
||||
_frameOffset = layer.startFrame;
|
||||
} else {
|
||||
_frameOffset = @0;
|
||||
|
||||
Reference in New Issue
Block a user