]> granicus.if.org Git - graphviz/commitdiff
emit_edge_label: remove unnecessary bracketing
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 30 Aug 2021 00:26:17 +0000 (17:26 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Sep 2021 02:31:58 +0000 (19:31 -0700)
lib/common/emit.c

index f08a296cb129c2b32efbe3201211b7e444dbef12..48e9204423fd078da9ad2f6eb66f5c1a3cab7af1 100644 (file)
@@ -2678,7 +2678,7 @@ emit_edge_label(GVJ_t* job, textlabel_t* lbl, emit_state_t lkind, int explicit,
     char* newid;
     char* type;
 
-    if ((lbl == NULL) || !(lbl->set)) return;
+    if (lbl == NULL || !lbl->set) return;
     if (id) { /* non-NULL if needed */
        newid = N_NEW(strlen(id) + sizeof("-headlabel"),char);
        switch (lkind) {