Skip to content

Commit 4d72b66

Browse files
committed
Remove double-adding of clauses to vector
1 parent 6b32843 commit 4d72b66

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cpp/arcticdb/version/python_bindings.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -785,13 +785,11 @@ void register_bindings(py::module &version, py::exception<arcticdb::ArcticExcept
785785
user_input::check<ErrorCode::E_INVALID_USER_ARGUMENT>(
786786
clause->clause_info().multi_symbol_,
787787
"Single-symbol clause cannot be used to join multiple symbols together");
788-
_clauses.emplace_back(std::make_shared<Clause>(*clause));
789788
first_clause = false;
790789
} else {
791790
user_input::check<ErrorCode::E_INVALID_USER_ARGUMENT>(
792791
!clause->clause_info().multi_symbol_,
793792
"Multi-symbol clause cannot be used on a single symbol");
794-
_clauses.emplace_back(std::make_shared<Clause>(*clause));
795793
}
796794
_clauses.emplace_back(std::make_shared<Clause>(*clause));
797795
}

0 commit comments

Comments
 (0)