Skip to content

Commit ca9fbdc

Browse files
committed
Fix code formatting for CI
1 parent 3b4313c commit ca9fbdc

4 files changed

Lines changed: 15 additions & 10 deletions

File tree

lib/checkend/client.ex

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ defmodule Checkend.Client do
2424
body = encode_json(payload)
2525

2626
headers = [
27-
{'content-type', 'application/json'},
28-
{'checkend-ingestion-key', String.to_charlist(config.api_key)},
29-
{'user-agent', String.to_charlist("checkend-elixir/#{Checkend.version()}")}
27+
{~c"content-type", ~c"application/json"},
28+
{~c"checkend-ingestion-key", String.to_charlist(config.api_key)},
29+
{~c"user-agent", String.to_charlist("checkend-elixir/#{Checkend.version()}")}
3030
]
3131

32-
request = {String.to_charlist(url), headers, 'application/json', body}
32+
request = {String.to_charlist(url), headers, ~c"application/json", body}
3333

3434
http_options = build_http_options(config)
3535

@@ -70,7 +70,8 @@ defmodule Checkend.Client do
7070
options
7171
end
7272

73-
defp add_ssl_options(options, %{ssl_verify: true, ssl_ca_path: ca_path}) when is_binary(ca_path) do
73+
defp add_ssl_options(options, %{ssl_verify: true, ssl_ca_path: ca_path})
74+
when is_binary(ca_path) do
7475
ssl_opts = [
7576
verify: :verify_peer,
7677
cacertfile: String.to_charlist(ca_path)

lib/checkend/integrations/oban.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ defmodule Checkend.Integrations.Oban do
113113

114114
defp normalize_exception(:error, %{__exception__: true} = exception), do: exception
115115
defp normalize_exception(:error, reason), do: %RuntimeError{message: inspect(reason)}
116-
defp normalize_exception(:throw, reason), do: %RuntimeError{message: "throw: #{inspect(reason)}"}
116+
117+
defp normalize_exception(:throw, reason),
118+
do: %RuntimeError{message: "throw: #{inspect(reason)}"}
119+
117120
defp normalize_exception(:exit, reason), do: %RuntimeError{message: "exit: #{inspect(reason)}"}
118121
defp normalize_exception(_, reason), do: %RuntimeError{message: inspect(reason)}
119122

lib/checkend/notice_builder.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ defmodule Checkend.NoticeBuilder do
4444

4545
defp build_request_data(_request, _filter, %{send_request_data: false}), do: %{}
4646

47-
defp build_request_data(request, filter, %{send_request_data: true, send_session_data: send_session}) do
47+
defp build_request_data(request, filter, %{
48+
send_request_data: true,
49+
send_session_data: send_session
50+
}) do
4851
data = SanitizeFilter.filter(filter, request || %{})
4952

5053
if send_session do

test/checkend_test.exs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ defmodule CheckendTest do
6464
raise "Test"
6565
rescue
6666
e ->
67-
Checkend.notify(e, __STACKTRACE__,
68-
user: %{id: "user-1", email: "test@example.com"}
69-
)
67+
Checkend.notify(e, __STACKTRACE__, user: %{id: "user-1", email: "test@example.com"})
7068
end
7169

7270
notice = Testing.last_notice()

0 commit comments

Comments
 (0)