Skip to content

Commit 47e2d65

Browse files
committed
Fix Dialyzer error
1 parent 711236f commit 47e2d65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/sentry/sources.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ defmodule Sentry.Sources do
1313
@compression_level if Mix.env() == :test, do: 0, else: 9
1414

1515
# Default argument is here for testing.
16-
@spec load_source_code_map_if_present(Path.t()) :: {:loaded, source_map()} | {:error, term()}
16+
@spec load_source_code_map_if_present(Path.t() | nil) ::
17+
{:loaded, source_map()} | {:error, term()}
1718
def load_source_code_map_if_present(path_for_tests \\ nil) do
1819
path = path_for_tests || Config.source_code_map_path() || path_of_packaged_source_code()
1920
path = Path.relative_to_cwd(path)

0 commit comments

Comments
 (0)