Skip to content

Commit

Permalink
Fix Dialyzer error
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Feb 25, 2024
1 parent 711236f commit 47e2d65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/sentry/sources.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ defmodule Sentry.Sources do
@compression_level if Mix.env() == :test, do: 0, else: 9

# Default argument is here for testing.
@spec load_source_code_map_if_present(Path.t()) :: {:loaded, source_map()} | {:error, term()}
@spec load_source_code_map_if_present(Path.t() | nil) ::
{:loaded, source_map()} | {:error, term()}
def load_source_code_map_if_present(path_for_tests \\ nil) do
path = path_for_tests || Config.source_code_map_path() || path_of_packaged_source_code()
path = Path.relative_to_cwd(path)
Expand Down

0 comments on commit 47e2d65

Please sign in to comment.