From a7bbb1dc44c45bc945f03e379c3f62cae017fd4f Mon Sep 17 00:00:00 2001 From: Ivor Paul Date: Tue, 19 Nov 2024 10:29:18 +0100 Subject: [PATCH] Update lib/meta_logger/slicer/utf8_impl.ex Co-authored-by: Fernando Hamasaki de Amorim --- lib/meta_logger/slicer/utf8_impl.ex | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/meta_logger/slicer/utf8_impl.ex b/lib/meta_logger/slicer/utf8_impl.ex index 1782e00..279d29f 100644 --- a/lib/meta_logger/slicer/utf8_impl.ex +++ b/lib/meta_logger/slicer/utf8_impl.ex @@ -81,6 +81,9 @@ defmodule MetaLogger.Slicer.Utf8Impl do do: [reconstruct_current_slice_as_binary(partial_slice) | slices] @spec reconstruct_current_slice_as_binary([iodata()]) :: binary() - defp reconstruct_current_slice_as_binary(current_slice), - do: IO.iodata_to_binary(Enum.reverse(current_slice)) + defp reconstruct_current_slice_as_binary(current_slice) do + current_slice + |> Enum.reverse() + |> IO.iodata_to_binary() + end end