From 57c71d6d5f0f2ebaeec93a8faf789c92b6e24244 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 30 Nov 2010 16:03:35 -0800 Subject: [PATCH] Minor simplification to StripVersion_: ?: over if. --- MobileCydia.mm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) { -- 2.45.2