pgsql: Clean up more code using "(expr) ? true : false"

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Clean up more code using "(expr) ? true : false"
Date: 2021-10-11 00:43:57
Message-ID: E1mZjQ5-0007Os-Pb@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2021-10-11 14:57:53 Re: pgsql: Adjust configure to insist on Perl version >= 5.8.3.
Previous Message Noah Misch 2021-10-10 23:43:48 Re: pgsql: Adjust configure to insist on Perl version >= 5.8.3.