diff options
-rw-r--r-- | MobileCydia.mm | 4 |
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) { |