We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 711236f commit 47e2d65Copy full SHA for 47e2d65
lib/sentry/sources.ex
@@ -13,7 +13,8 @@ defmodule Sentry.Sources do
13
@compression_level if Mix.env() == :test, do: 0, else: 9
14
15
# Default argument is here for testing.
16
- @spec load_source_code_map_if_present(Path.t()) :: {:loaded, source_map()} | {:error, term()}
+ @spec load_source_code_map_if_present(Path.t() | nil) ::
17
+ {:loaded, source_map()} | {:error, term()}
18
def load_source_code_map_if_present(path_for_tests \\ nil) do
19
path = path_for_tests || Config.source_code_map_path() || path_of_packaged_source_code()
20
path = Path.relative_to_cwd(path)
0 commit comments