aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/tsvector_op.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2010-11-14 21:03:48 -0500
committerRobert Haas <rhaas@postgresql.org>2010-11-14 21:03:48 -0500
commit5aa446c961a6fdf15ff9c398751efd6ecff0c64a (patch)
treeac22ab29014d718cb234f2edc334c7803b3593a7 /src/backend/utils/adt/tsvector_op.c
parent3892a2d8619ee5623fc3ebee775538fdea1f529e (diff)
downloadpostgresql-5aa446c961a6fdf15ff9c398751efd6ecff0c64a.tar.gz
postgresql-5aa446c961a6fdf15ff9c398751efd6ecff0c64a.zip
Cleanup various comparisons with the constant "true".
Itagaki Takahiro, with slight modifications.
Diffstat (limited to 'src/backend/utils/adt/tsvector_op.c')
-rw-r--r--src/backend/utils/adt/tsvector_op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/tsvector_op.c b/src/backend/utils/adt/tsvector_op.c
index 769509772a1..1920f2ad267 100644
--- a/src/backend/utils/adt/tsvector_op.c
+++ b/src/backend/utils/adt/tsvector_op.c
@@ -625,7 +625,7 @@ checkcondition_str(void *checkval, QueryOperand *val)
StopHigh = StopMiddle;
}
- if (res == false && val->prefix == true)
+ if (!res && val->prefix)
{
/*
* there was a failed exact search, so we should scan further to find