]> git.saurik.com Git - cydia.git/blobdiff - MobileCydia.mm
Minor simplification to StripVersion_: ?: over if.
[cydia.git] / MobileCydia.mm
index 970ffa3d7c9c9f7697cf8bcb4c83054f6feb7d21..dc0b738ae5486c9298be97f8677fc2a7aada4ae8 100644 (file)
@@ -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) {