Skip to content

Commit 18ac285

Browse files
authored
Added dialyzer warning to ignore list (#1281)
1 parent 917bb86 commit 18ac285

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

dialyzer.ignore-warnings

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:0: Unknown type 'Elixir.Access':get/2
2-
lib/code_corps/guardian.ex:26: The call 'Elixir.Timber':add_context(#{'__struct__':='Elixir.Timber.Contexts.UserContext', 'email':=_, 'id':=_, 'name':=_}) will never return since it differs in the 1st argument from the success typing arguments: (maybe_improper_list())
2+
lib/code_corps_web/plugs/set_timber_user_context.ex:21: The call 'Elixir.Timber':add_context(#{'__struct__':='Elixir.Timber.Contexts.UserContext', 'email':=_, 'id':=_, 'name':=binary()}) will never return since it differs in the 1st argument from the success typing arguments: (maybe_improper_list())
33
lib/code_corps/services/markdown_renderer_service.ex:29: Function convert_into_html/1 has no local return
44
lib/code_corps/services/markdown_renderer_service.ex:35: Function put_into/3 will never be called
55
lib/code_corps_web/endpoint.ex:1: The call 'Elixir.Timber.Integrations.PhoenixInstrumenter':phoenix_channel_receive('start',compile@1::map(),runtime@1::map()) will never return since it differs in the 1st and 3rd argument from the success typing arguments: ('stop',any(),'ok')

lib/code_corps_web/plugs/set_timber_user_context.ex

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ defmodule CodeCorpsWeb.Plug.SetTimberUserContext do
1616

1717
@impl false
1818
def add_context(conn, %User{} = user) do
19-
%Timber.Contexts.UserContext{id: user.id, email: user.email, name: User.full_name(user)}
20-
|> Timber.add_context()
19+
%Timber.Contexts.UserContext{
20+
id: user.id, email: user.email, name: User.full_name(user)
21+
} |> Timber.add_context()
2122

2223
conn
2324
end

0 commit comments

Comments
 (0)