Skip to content

Commit

Permalink
More dialyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Aug 28, 2024
1 parent 372a653 commit 4569b0c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lib/sentry/sources.ex
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@ defmodule Sentry.Sources do

@impl true
def handle_continue(:load_source_code_map, state) do
with {:loaded, source_map} <- load_source_code_map_if_present() do
Enum.each(source_map, fn {path, lines_map} ->
:ets.insert(@table, {path, lines_map})
end)
end
:ok =
with {:loaded, source_map} <- load_source_code_map_if_present() do
Enum.each(source_map, fn {path, lines_map} ->
:ets.insert(@table, {path, lines_map})
end)
else
_error -> :ok
end

{:noreply, state}
end
Expand Down

0 comments on commit 4569b0c

Please sign in to comment.