Skip to content

Commit

Permalink
Shut up Dialyzer (even though it's fine)
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Dec 10, 2023
1 parent f8dff64 commit cd59d1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/sentry/event.ex
Original file line number Diff line number Diff line change
Expand Up @@ -318,13 +318,13 @@ defmodule Sentry.Event do
{iodata, _params} =
Enum.reduce(parts, {"", params}, fn
"%s", {acc, [param | rest_params]} ->
{[acc | to_string(param)], rest_params}
{[acc, to_string(param)], rest_params}

"%s", {acc, []} ->
{[acc | "%s"], []}
{[acc, "%s"], []}

part, {acc, params} ->
{[acc | part], params}
{[acc, part], params}
end)

IO.iodata_to_binary(iodata)
Expand Down

0 comments on commit cd59d1a

Please sign in to comment.