Skip to content

Commit

Permalink
fix(client): make has_metadata? private
Browse files Browse the repository at this point in the history
This is a public function by mistake, let's make it private.

Signed-off-by: Levente Kurusa <lkurusa@kernelstuff.org>
  • Loading branch information
levex authored and jjcarstens committed Sep 13, 2023
1 parent 53ddfc1 commit a003768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ring_logger/client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ defmodule RingLogger.Client do
end

@spec has_metadata?(RingLogger.entry(), atom(), String.t() | Regex.t()) :: boolean()
def has_metadata?(%{metadata: metadata}, key, match_value) do
defp has_metadata?(%{metadata: metadata}, key, match_value) do
case metadata[key] do
nil -> false
val when is_binary(val) -> val =~ match_value
Expand Down

0 comments on commit a003768

Please sign in to comment.