mirror of
https://github.com/pgvector/pgvector.git
synced 2026-12-04 16:28:40 +00:00
Use consistent style [skip ci]
This commit is contained in:
1 parent
69a3147385
commit
0dc5fa2ccb
1 file changed
-4
@@ -112,11 +112,9 @@ CheckIndex(int32 *indices, int i, int dim)
|
||||
int32 index = indices[i];
|
||||
|
||||
if (index < 0 || index >= dim)
|
||||
{
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_DATA_EXCEPTION),
|
||||
errmsg("sparsevec index out of bounds")));
|
||||
}
|
||||
|
||||
if (i > 0)
|
||||
{
|
||||
@@ -383,11 +381,9 @@ sparsevec_in(PG_FUNCTION_ARGS)
|
||||
int32 index = elements[i].index;
|
||||
|
||||
if (index >= dim)
|
||||
{
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_DATA_EXCEPTION),
|
||||
errmsg("sparsevec index out of bounds")));
|
||||
}
|
||||
|
||||
if (i > 0 && index == elements[i - 1].index)
|
||||
ereport(ERROR,
|
||||
|
||||
Reference in new issue
Block a user