From: Matthew Fernandez Date: Wed, 21 Sep 2022 02:17:20 +0000 (-0700) Subject: pack acmpf: simplify some early return code X-Git-Tag: 6.0.2~31^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77444f212de174b542d48a67fa60dec4badf7c12;p=graphviz pack acmpf: simplify some early return code --- diff --git a/lib/pack/pack.c b/lib/pack/pack.c index 76def633b..530a796ce 100644 --- a/lib/pack/pack.c +++ b/lib/pack/pack.c @@ -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) \