From: Matthew Fernandez Date: Sat, 18 Jun 2022 22:21:01 +0000 (-0700) Subject: make_regular_edge: remove some unnecessary parens X-Git-Tag: 5.0.0~20^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eeebea54d0e652e2a7b13da96919eb67b4e40c9c;p=graphviz make_regular_edge: remove some unnecessary parens --- diff --git a/lib/dotgen/dotsplines.c b/lib/dotgen/dotsplines.c index 9232cc2a1..5e5a43a2b 100644 --- a/lib/dotgen/dotsplines.c +++ b/lib/dotgen/dotsplines.c @@ -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;