From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Clean up more code using "(expr) ? true : false"
Date: Mon, 11 Oct 2021 00:43:57 +0000
Message-ID: <E1mZjQ5-0007Os-Pb@gemulon.postgresql.org> (raw)
Clean up more code using "(expr) ? true : false"
This is similar to fd0625c, taking care of any remaining code paths that
are worth the cleanup. This also changes some cases using opposite
expression patterns.
Author: Justin Pryzby, Masahiko Sawada
Discussion: https://postgr.es/m/CAD21AoCdF8dnUvr-BUWWGvA_XhKSoANacBMZb6jKyCk4TYfQ2Q@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/68f7c4b57a27dbcd3e93ba3ff7b0b49664b25e09
Modified Files
--------------
contrib/ltree/ltree_op.c | 12 ++++++------
src/backend/access/gist/gistsplit.c | 8 ++++----
src/backend/commands/tablecmds.c | 2 +-
src/backend/executor/nodeResult.c | 4 ++--
src/backend/statistics/mcv.c | 3 +--
src/backend/tsearch/ts_utils.c | 2 +-
src/backend/tsearch/wparser_def.c | 2 +-
7 files changed, 16 insertions(+), 17 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz
Subject: Re: pgsql: Clean up more code using "(expr) ? true : false"
In-Reply-To: <E1mZjQ5-0007Os-Pb@gemulon.postgresql.org>
References: <E1mZjQ5-0007Os-Pb@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox