mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
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
This commit is contained in:
@@ -142,5 +142,5 @@ searchstoplist(StopList *s, char *key)
|
||||
{
|
||||
return (s->stop && s->len > 0 &&
|
||||
bsearch(&key, s->stop, s->len,
|
||||
sizeof(char *), pg_qsort_strcmp)) ? true : false;
|
||||
sizeof(char *), pg_qsort_strcmp));
|
||||
}
|
||||
|
@@ -1856,7 +1856,7 @@ TParserGet(TParser *prs)
|
||||
}
|
||||
}
|
||||
|
||||
return (item && (item->flags & A_BINGO)) ? true : false;
|
||||
return (item && (item->flags & A_BINGO));
|
||||
}
|
||||
|
||||
Datum
|
||||
|
Reference in New Issue
Block a user