Fix code styling issue
This commit is contained in:
parent
8957ba5222
commit
540076e9d5
1 changed files with 5 additions and 7 deletions
|
@ -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));
|
||||
}];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue