1
0
Fork 0

fixed logical confusion

This commit is contained in:
Jan Steemann 2016-02-25 15:36:24 +01:00
parent efc2b26643
commit bc7787cf81
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@ void HashIndex::transformSearchValues(VPackSlice const values,
if (!values.isArray()) {
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_BAD_PARAMETER, "Index lookup requires an array of values as input.");
}
if (!values.length() == _fields.size()) {
if (values.length() != _fields.size()) {
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_BAD_PARAMETER, "Index lookup covers too few elements.");
}