Skip to content

Commit d34a664

Browse files
committed
quote/unquote
1 parent 97dc860 commit d34a664

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/sentry/event.ex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ defmodule Sentry.Event do
188188
do_put_source_context(unquote(frame), unquote(file), unquote(line_number))
189189
end
190190
else
191-
frame
191+
quote do
192+
unquote(frame)
193+
end
192194
end
193195
end
194196

@@ -218,7 +220,8 @@ defmodule Sentry.Event do
218220
|> Enum.reverse()
219221
end
220222

221-
defp do_put_source_context(frame, file, line_number) do
223+
@spec do_put_source_context(map(), String.t, integer()) :: map()
224+
def do_put_source_context(frame, file, line_number) do
222225
{pre_context, context, post_context} =
223226
Sentry.Sources.get_source_context(@source_files, file, line_number)
224227

0 commit comments

Comments
 (0)