summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-11-30 16:03:35 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2010-12-01 01:46:26 -0800
commit673ad3c3d271905a65578b732ec72262cf721cbd (patch)
treea4037d2b843e99a1c1406bebacf06ca595eb1bb7
parentbb6bb6d60bf7e9c0bd5acb102bed9e3f4417dae8 (diff)
Minor simplification to StripVersion_: ?: over if.
-rw-r--r--MobileCydia.mm4
1 files changed, 1 insertions, 3 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 970ffa3..dc0b738 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -1101,9 +1101,7 @@ NSString *SizeString(double size) {
static _finline const char *StripVersion_(const char *version) {
const char *colon(strchr(version, ':'));
- if (colon != NULL)
- version = colon + 1;
- return version;
+ return colon == NULL ? version : colon + 1;
}
NSString *LocalizeSection(NSString *section) {