Skip to content

Commit 7f412c4

Browse files
committed
Improved code
1 parent e1af902 commit 7f412c4

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/pgvector/bit.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ def to_a
2626
end
2727

2828
def to_binary
29-
buffer = [@data.length].pack("l>")
30-
[@data].pack("B*", buffer: buffer)
31-
buffer
29+
[@data.length, @data].pack("l>B*")
3230
end
3331
end
3432
end

0 commit comments

Comments
 (0)