]> granicus.if.org Git - graphviz/commitdiff
getObjId: remove unnecessary bracketing
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 29 Aug 2021 23:47:46 +0000 (16:47 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Sep 2021 02:28:20 +0000 (19:28 -0700)
lib/common/emit.c

index a022660651817e95427bba99ec98c1f57298ceab..07fdd0f9208af46e959a0c03a14f7bf40647860c 100644 (file)
@@ -201,12 +201,12 @@ getObjId (GVJ_t* job, void* obj, agxbuf* xb)
     layerPagePrefix (job, xb);
 
     id = agget(obj, "id");
-    if (id && (*id != '\0')) {
+    if (id && *id != '\0') {
        agxbput (xb, id);
        return agxbuse(xb);
     }
 
-    if ((obj != root) && gid) {
+    if (obj != root && gid) {
        agxbprint (xb, "%s_", gid);
     }