Skip to content

Commit 2b278b8

Browse files
committed
use map_join instead of map |> join
1 parent f19d5b9 commit 2b278b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/stream_decoder_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ defmodule Msgpack.StreamDecoderTest do
1414

1515
test "decodes a stream where objects cross chunk boundaries" do
1616
terms = [123, "elixir", true, %{"a" => 1}]
17-
single_binary = Enum.map(terms, &Msgpack.encode!/1) |> Enum.join()
17+
single_binary = Enum.map_join(terms, &Msgpack.encode!/1)
1818
<<chunk1::binary-size(4), chunk2::binary>> = single_binary
1919
input_stream = [chunk1, chunk2]
2020

0 commit comments

Comments
 (0)