From: Matthew Fernandez Date: Mon, 30 Aug 2021 00:01:19 +0000 (-0700) Subject: firstlayer: remove unnecessary bracketing X-Git-Tag: 2.49.1~46^2~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17c46a0fb7291a27d4adfd31fb035499dd93ae1c;p=graphviz firstlayer: remove unnecessary bracketing --- diff --git a/lib/common/emit.c b/lib/common/emit.c index f0554030d..b89054218 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -1226,7 +1226,7 @@ static void firstlayer(GVJ_t *job, int** listp) if (job->gvc->layerlist) { int *list = job->gvc->layerlist; int cnt = *list++; - if ((cnt > 1) && (! (job->flags & GVDEVICE_DOES_LAYERS))) { + if (cnt > 1 && !(job->flags & GVDEVICE_DOES_LAYERS)) { agerr(AGWARN, "layers not supported in %s output\n", job->output_langname); list[1] = job->numLayers + 1; /* only one layer printed */ @@ -1235,8 +1235,7 @@ static void firstlayer(GVJ_t *job, int** listp) *listp = list; } else { - if ((job->numLayers > 1) - && (! (job->flags & GVDEVICE_DOES_LAYERS))) { + if (job->numLayers > 1 && !(job->flags & GVDEVICE_DOES_LAYERS)) { agerr(AGWARN, "layers not supported in %s output\n", job->output_langname); job->numLayers = 1;