Adding braces

This commit is contained in:
Jonathan Carter
2016-05-23 15:26:51 -07:00
parent c0c32babc7
commit f10eb7ef67
2 changed files with 4 additions and 2 deletions

View File

@@ -114,8 +114,9 @@ public class CodePushTelemetryManager {
public void recordStatusReported(ReadableMap statusReport) {
// We don't need to record rollback reports, so exit early if that's what was specified.
if (statusReport.hasKey(STATUS_KEY) && DEPLOYMENT_FAILED_STATUS.equals(statusReport.getString(STATUS_KEY)))
if (statusReport.hasKey(STATUS_KEY) && DEPLOYMENT_FAILED_STATUS.equals(statusReport.getString(STATUS_KEY))) {
return;
}
if (statusReport.hasKey(APP_VERSION_KEY)) {
saveStatusReportedForIdentifier(statusReport.getString(APP_VERSION_KEY));

View File

@@ -102,8 +102,9 @@ static NSString *const StatusKey = @"status";
+ (void)recordStatusReported:(NSDictionary *)statusReport
{
// We don't need to record rollback reports, so exit early if that's what was specified.
if ([DeploymentFailed isEqualToString:statusReport[StatusKey]])
if ([DeploymentFailed isEqualToString:statusReport[StatusKey]]) {
return;
}
if (statusReport[AppVersionKey]) {
[self saveStatusReportedForIdentifier:statusReport[AppVersionKey]];