summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-22 18:11:12 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-02-22 18:21:11 -0800
commit83b78e5f9642d8a57b6ff3549815e57fd8e1ed40 (patch)
tree93d602cab319116268dc2d0192a245096e3c8696 /MobileCydia.mm
parenta4a27fd05f5e4845b16186cabe9d9a2f21bdb1e6 (diff)
Simplify if logic in -[CydiaProgressEvent compoundTitle].
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm12
1 files changed, 5 insertions, 7 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 7958298..88efb14 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -1417,14 +1417,12 @@ typedef std::map< unsigned long, _H<Source> > SourceMap;
- (NSString *) compoundTitle {
NSString *title;
- if (package_ != nil) {
- if (Package *package = [[Database sharedInstance] packageWithName:package_])
- title = [package name];
- else
- title = package_;
- } else {
+ if (package_ == nil)
title = nil;
- }
+ else if (Package *package = [[Database sharedInstance] packageWithName:package_])
+ title = [package name];
+ else
+ title = package_;
return [self compound:title];
}