Clean up more code using "(expr) ? true : false"
Michael Paquier <michael@paquier.xyz>
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
Files
| Path | Change | +/− |
|---|---|---|
| contrib/ltree/ltree_op.c | modified | +6 −6 |
| src/backend/access/gist/gistsplit.c | modified | +4 −4 |
| src/backend/commands/tablecmds.c | modified | +1 −1 |
| src/backend/executor/nodeResult.c | modified | +2 −2 |
| src/backend/statistics/mcv.c | modified | +1 −2 |
| src/backend/tsearch/ts_utils.c | modified | +1 −1 |
| src/backend/tsearch/wparser_def.c | modified | +1 −1 |
Discussion
- strange case of "if ((a & b))" 27 messages · 2021-04-28 → 2021-10-11