Skip to content

Commit 3b1fef5

Browse files
committed
mix format
1 parent 2a13d4e commit 3b1fef5

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

lib/sentry/integrations/oban/error_reporter.ex

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,12 @@ defmodule Sentry.Integrations.Oban.ErrorReporter do
6666
callback.(worker, job) == true
6767
rescue
6868
error ->
69-
Logger.warning(
70-
"""
71-
:should_report_error_callback failed for worker #{inspect(worker)} \
72-
(job ID #{job.id}):
69+
Logger.warning("""
70+
:should_report_error_callback failed for worker #{inspect(worker)} \
71+
(job ID #{job.id}):
7372
74-
#{Exception.format(:error, error, __STACKTRACE__)}\
75-
"""
76-
)
73+
#{Exception.format(:error, error, __STACKTRACE__)}\
74+
""")
7775

7876
true
7977
end

test/sentry/integrations/oban/error_reporter_test.exs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,9 @@ defmodule Sentry.Integrations.Oban.ErrorReporterTest do
231231
[:oban, :job, :exception],
232232
%{},
233233
%{job: job_attempt_1, kind: :error, reason: reason, stacktrace: []},
234-
should_report_error_callback: fn _worker, job -> job.attempt >= job.max_attempts end
234+
should_report_error_callback: fn _worker, job ->
235+
job.attempt >= job.max_attempts
236+
end
235237
)
236238

237239
assert [] = Sentry.Test.pop_sentry_reports()
@@ -244,7 +246,9 @@ defmodule Sentry.Integrations.Oban.ErrorReporterTest do
244246
[:oban, :job, :exception],
245247
%{},
246248
%{job: job_attempt_3, kind: :error, reason: reason, stacktrace: []},
247-
should_report_error_callback: fn _worker, job -> job.attempt >= job.max_attempts end
249+
should_report_error_callback: fn _worker, job ->
250+
job.attempt >= job.max_attempts
251+
end
248252
)
249253

250254
assert [event] = Sentry.Test.pop_sentry_reports()

0 commit comments

Comments
 (0)