Skip to content

Commit a89d566

Browse files
committed
Updated style [skip ci]
1 parent 1c89ee4 commit a89d566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pgvector/pqxx.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ template<> struct string_traits<pgvector::SparseVector> {
176176
throw conversion_error{"Malformed sparsevec literal"};
177177
}
178178

179-
std::unordered_map<int, float> map;
180179
int dimensions = pqxx::from_string<int>(text.substr(n + 2), c);
181180

181+
std::unordered_map<int, float> map;
182182
if (n > 1) {
183183
std::string_view inner = text.substr(1, n - 1);
184184
for (const auto& v : std::views::split(inner, ',')) {

0 commit comments

Comments
 (0)