Skip to content

Commit

Permalink
Fix PR feedback issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivor committed Oct 25, 2024
1 parent 02bd65a commit 043e115
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/meta_logger/slicer/default_impl.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule MetaLogger.Slicer.DefaultImpl do
"""

@behaviour MetaLogger.Slicer

@doc """
Returns sliced log entries according to the given max entry length.
Expand Down
6 changes: 3 additions & 3 deletions lib/meta_logger/slicer/utf8_impl.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ defmodule MetaLogger.Slicer.Utf8Impl do
"""
@impl MetaLogger.Slicer
@spec slice(binary(), MetaLogger.Slicer.max_entry_length()) :: [String.t()]
def slice(entry, max_entry_length)
when max_enty_length == :infinity
def slice(entry, max_entry_length)
when max_entry_length == :infinity
when byte_size(entry) <= max_entry_length,
do: [entry]
do: [entry]

def slice(entry, max_entry_length) do
do_slice(entry, max_entry_length, [], [], 0)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule MetaLogger.SlicerTest do
defmodule MetaLogger.Slicer.DefaultImplTest do
use ExUnit.Case, async: true

alias MetaLogger.Slicer.DefaultImpl, as: Subject
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule MetaLogger.Utf8SlicerTest do
defmodule MetaLogger.Slicer.Utf8ImplTest do
use ExUnit.Case, async: true

alias MetaLogger.Slicer.Utf8Impl, as: Subject
Expand Down

0 comments on commit 043e115

Please sign in to comment.