mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-10 07:10:36 +08:00
Adding braces
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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]];
|
||||
|
||||
Reference in New Issue
Block a user