diff options
author | Michael Paquier <michael@paquier.xyz> | 2021-09-08 09:44:04 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2021-09-08 09:44:04 +0900 |
commit | fd0625c7a9c679c0c1e896014b8f49a489c3a245 (patch) | |
tree | cacddafcd64a4f00d87f6551b29937f9e5ced415 /src/backend/tsearch | |
parent | d6c916f020e291b45563d4e76a649e9364cb6f2d (diff) | |
download | postgresql-fd0625c7a9c679c0c1e896014b8f49a489c3a245.tar.gz |
Clean up some code using "(expr) ? true : false"
All the code paths simplified here were already using a boolean or used
an expression that led to zero or one, making the extra bits
unnecessary.
Author: Justin Pryzby
Reviewed-by: Tom Lane, Michael Paquier, Peter Smith
Discussion: https://postgr.es/m/20210428182936.GE27406@telsasoft.com
Diffstat (limited to 'src/backend/tsearch')
-rw-r--r-- | src/backend/tsearch/ts_parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/tsearch/ts_parse.c b/src/backend/tsearch/ts_parse.c index d978c8850d..3ae0044dfb 100644 --- a/src/backend/tsearch/ts_parse.c +++ b/src/backend/tsearch/ts_parse.c @@ -288,7 +288,7 @@ LexizeExec(LexizeData *ld, ParsedLex **correspondLexem) } } - ld->dictState.isend = (curVal->type == 0) ? true : false; + ld->dictState.isend = (curVal->type == 0); ld->dictState.getnext = false; res = (TSLexeme *) DatumGetPointer(FunctionCall4(&(dict->lexize), |