]> granicus.if.org Git - graphviz/commitdiff
pack ucmpf: simplify some early return code
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 21 Sep 2022 02:17:04 +0000 (19:17 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 22 Sep 2022 00:00:18 +0000 (17:00 -0700)
lib/pack/pack.c

index 3e5d88ff7cb00023ee439da170433e24aa3a8fe8..76def633b1815b2d1c91257a2378ca1d45aa6000 100644 (file)
@@ -577,8 +577,8 @@ static int ucmpf(const void *X, const void *Y)
     int dX = userVals[x->index];
     int dY = userVals[y->index];
     if (dX > dY) return 1;
-    else if (dX < dY) return -1;
-    else return 0;
+    if (dX < dY) return -1;
+    return 0;
 }
 
 /* acmpf;