]> granicus.if.org Git - graphviz/commitdiff
pack acmpf: simplify some early return code
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 21 Sep 2022 02:17:20 +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 76def633b1815b2d1c91257a2378ca1d45aa6000..530a796ce7a72e0c57a4ba837ac85d32dc752863 100644 (file)
@@ -591,8 +591,8 @@ static int acmpf(const void *X, const void *Y)
     double dX = x->height + x->width; 
     double dY = y->height + y->width; 
     if (dX < dY) return 1;
-    else if (dX > dY) return -1;
-    else return 0;
+    if (dX > dY) return -1;
+    return 0;
 }
 
 #define INC(m,c,r) \