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();
|
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));
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue