From acb29b88be0c2f17392070b6130d1b321eb11fd4 Mon Sep 17 00:00:00 2001 From: John Hossler Date: Tue, 2 Apr 2024 15:29:00 -0700 Subject: [PATCH] fix: put variable on the right side of pattern match in parameter list --- lib/pigeon/pushy/result_parser.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pigeon/pushy/result_parser.ex b/lib/pigeon/pushy/result_parser.ex index 46dc2444..0e08e601 100644 --- a/lib/pigeon/pushy/result_parser.ex +++ b/lib/pigeon/pushy/result_parser.ex @@ -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 @@ -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