Skip to content

Commit b3a92b7

Browse files
Merge pull request #436 from lowang/dialyzer-fix-unmatched_return
Fix dialyzer reporting unmatched_return for Sentry.PlugCapture
2 parents 893e2e9 + c85be19 commit b3a92b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/sentry/plug_capture.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ defmodule Sentry.PlugCapture do
3939
rescue
4040
e in Plug.Conn.WrapperError ->
4141
exception = Exception.normalize(:error, e.reason, e.stack)
42-
Sentry.capture_exception(exception, stacktrace: e.stack, event_source: :plug)
42+
_ = Sentry.capture_exception(exception, stacktrace: e.stack, event_source: :plug)
4343
Plug.Conn.WrapperError.reraise(e)
4444

4545
e ->
46-
Sentry.capture_exception(e, stacktrace: __STACKTRACE__, event_source: :plug)
46+
_ = Sentry.capture_exception(e, stacktrace: __STACKTRACE__, event_source: :plug)
4747
:erlang.raise(:error, e, __STACKTRACE__)
4848
end
4949
end

0 commit comments

Comments
 (0)