Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[ios] Add type check
Browse files Browse the repository at this point in the history
  • Loading branch information
jmkiley committed Sep 25, 2019
1 parent 06f4094 commit 650a231
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/darwin/src/NSExpression+MGLAdditions.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1056,8 +1056,8 @@ - (id)mgl_jsonExpressionObject {
case NSFunctionExpressionType: {
NSString *function = self.function;

BOOL hasCollectionProperty = !(self.arguments.firstObject.expressionType == NSConstantValueExpressionType || self.arguments.firstObject.expressionType == NSKeyPathExpressionType
|| self.arguments.firstObject.expressionType == NSVariableExpressionType || !self.arguments.firstObject.expressionType
BOOL hasCollectionProperty = !( ! [self.arguments.firstObject isKindOfClass: [self class]] || self.arguments.firstObject.expressionType == NSConstantValueExpressionType || self.arguments.firstObject.expressionType == NSKeyPathExpressionType
|| self.arguments.firstObject.expressionType == NSVariableExpressionType
);
NSString *op = MGLExpressionOperatorsByFunctionNames[function];
if (op) {
Expand Down

0 comments on commit 650a231

Please sign in to comment.