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();
}
} error:^(NSError *error) {
NSString *failureString;
if(error.localizedFailureReason) {
failureString = [NSString stringWithFormat:@"%@: %@",
error.localizedDescription, error.localizedFailureReason];
} else {
failureString = [NSString stringWithString: error.localizedDescription];
}
NSString* failureString = error.localizedFailureReason ?
[NSString stringWithFormat:@"%@: %@",
error.localizedDescription,
error.localizedFailureReason] :
[NSString stringWithString:error.localizedDescription];
delegate->OnError(base::SysNSStringToUTF8(failureString));
}];
}