]> granicus.if.org Git - graphviz/commitdiff
pack putRects: simplify some early return code
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 21 Sep 2022 02:17:33 +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 530a796ce7a72e0c57a4ba837ac85d32dc752863..e784f3310df0a941669fc5f91ec069c6336fa8ec 100644 (file)
@@ -945,10 +945,9 @@ putRects(int ng, boxf* bbs, pack_info* pinfo)
     if (pinfo->mode == l_node || pinfo->mode == l_clust) return NULL;
     if (pinfo->mode == l_graph)
        return polyRects (ng, bbs, pinfo);
-    else if (pinfo->mode == l_array)
+    if (pinfo->mode == l_array)
        return arrayRects (ng, bbs, pinfo);
-    else
-       return NULL;
+    return NULL;
 }
 
 /* packRects: