Fix code styling issue

This commit is contained in:
Cheng Zhao 2016-05-04 17:12:10 +09:00
parent 8957ba5222
commit 540076e9d5

View file

@ -90,13 +90,11 @@ void AutoUpdater::CheckForUpdates() {
delegate->OnUpdateNotAvailable(); delegate->OnUpdateNotAvailable();
} }
} error:^(NSError *error) { } error:^(NSError *error) {
NSString *failureString; NSString* failureString = error.localizedFailureReason ?
if(error.localizedFailureReason) { [NSString stringWithFormat:@"%@: %@",
failureString = [NSString stringWithFormat:@"%@: %@", error.localizedDescription,
error.localizedDescription, error.localizedFailureReason]; error.localizedFailureReason] :
} else { [NSString stringWithString:error.localizedDescription];
failureString = [NSString stringWithString: error.localizedDescription];
}
delegate->OnError(base::SysNSStringToUTF8(failureString)); delegate->OnError(base::SysNSStringToUTF8(failureString));
}]; }];
} }