Skip to content

Commit

Permalink
fix(device-info): call completionBlock when its available
Browse files Browse the repository at this point in the history
SUITEDEV-23360

Co-authored-by: Co-authored-by: kovacszsoltizsolt <[email protected]>
Co-authored-by: Co-authored-by: megamegax <[email protected]>
  • Loading branch information
3 people committed Jul 8, 2020
1 parent 35f33fe commit 3e24e14
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ - (void)sendDeviceInfoWithCompletionBlock:(EMSCompletionBlock)completionBlock {
[self.requestManager submitRequestModel:deviceInfoRequest
withCompletionBlock:completionBlock];
} else {
completionBlock(nil);
if (completionBlock) {
completionBlock(nil);
}
}
}

Expand Down

0 comments on commit 3e24e14

Please sign in to comment.