]> granicus.if.org Git - graphviz/commitdiff
make_regular_edge: remove some unnecessary parens
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 18 Jun 2022 22:21:01 +0000 (15:21 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 23 Jun 2022 00:11:37 +0000 (17:11 -0700)
lib/dotgen/dotsplines.c

index 9232cc2a1314bfe57c1e7456ab70fa68d6234413..5e5a43a2b48f0c37d532b71b10cb28045a0926d6 100644 (file)
@@ -1862,7 +1862,7 @@ make_regular_edge(graph_t* g, spline_info_t* sp, path * P, edge_t ** edges, int
 
     /* compute the spline points for the edge */
 
-    if ((et == EDGETYPE_LINE) && (pointn = makeLineEdge (g, fe, pointfs, &hn))) {
+    if (et == EDGETYPE_LINE && (pointn = makeLineEdge (g, fe, pointfs, &hn))) {
     }
     else {
        bool is_spline = et == EDGETYPE_SPLINE;
@@ -1913,7 +1913,7 @@ make_regular_edge(graph_t* g, spline_info_t* sp, path * P, edge_t ** edges, int
            if (is_spline) ps = routesplines(P, &pn);
            else {
                ps = routepolylines (P, &pn);
-               if ((et == EDGETYPE_LINE) && (pn > 4)) {
+               if (et == EDGETYPE_LINE && pn > 4) {
                    ps[1] = ps[0];
                    ps[3] = ps[2] = ps[pn-1];
                    pn = 4;