Skip to content

Commit

Permalink
style: mix format
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Jun 11, 2024
1 parent de68848 commit 49f1940
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
28 changes: 14 additions & 14 deletions lib/tower_rollbar/rollbar/client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ defmodule TowerRollbar.Rollbar.Client do

def post(path, payload) when is_map(payload) do
case :httpc.request(
:post,
{
~c"#{@base_url}#{path}",
[{@access_token_header, access_token()}],
~c"application/json",
Jason.encode!(payload)
},
[
ssl: [
cacerts: :public_key.cacerts_get()
]
],
[]
) do
:post,
{
~c"#{@base_url}#{path}",
[{@access_token_header, access_token()}],
~c"application/json",
Jason.encode!(payload)
},
[
ssl: [
cacerts: :public_key.cacerts_get()
]
],
[]
) do
{:ok, result} ->
result
|> IO.inspect()
Expand Down
17 changes: 9 additions & 8 deletions lib/tower_rollbar/rollbar/item.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@ defmodule TowerRollbar.Rollbar.Item do
person = Keyword.get(options, :person)

%{
"data" => %{
"environment" => environment(),
"body" => body
}
|> maybe_put_request_data(plug_conn)
|> maybe_put_level(level)
|> maybe_put_custom(custom)
|> maybe_put_person(person)
"data" =>
%{
"environment" => environment(),
"body" => body
}
|> maybe_put_request_data(plug_conn)
|> maybe_put_level(level)
|> maybe_put_custom(custom)
|> maybe_put_person(person)
}
end

Expand Down

0 comments on commit 49f1940

Please sign in to comment.