From: Jay Freeman (saurik) Date: Wed, 1 Dec 2010 00:03:35 +0000 (-0800) Subject: Minor simplification to StripVersion_: ?: over if. X-Git-Tag: v1.1.0%b1~467 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/673ad3c3d271905a65578b732ec72262cf721cbd Minor simplification to StripVersion_: ?: over if. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 970ffa3d..dc0b738a 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) {