Skip to content

Commit

Permalink
fix: put variable on the right side of pattern match in parameter list
Browse files Browse the repository at this point in the history
  • Loading branch information
jmhossler committed Apr 2, 2024
1 parent fefcc3c commit acb29b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/pigeon/pushy/result_parser.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ defmodule Pigeon.Pushy.ResultParser do

def parse(
notification,
response = %{
%{
"id" => push_id,
"success" => success_status,
"info" => %{"devices" => num_devices}
}
} = response
) do
notification =
notification
Expand All @@ -25,7 +25,7 @@ defmodule Pigeon.Pushy.ResultParser do
end
end

def parse(notification, response = %{"code" => _}) do
def parse(notification, %{"code" => _} = response) do
Error.parse(notification, response)
end
end

0 comments on commit acb29b8

Please sign in to comment.