Skip to content

Commit

Permalink
Update lib/broadway_cloud_pub_sub/pull_client.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim authored Jun 19, 2024
1 parent e0b1967 commit 017eb79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/broadway_cloud_pub_sub/pull_client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ defmodule BroadwayCloudPubSub.PullClient do
end

defp decode_message(%{"data" => nil} = message), do: message
defp decode_message(message) when is_map(message) and not is_map_key(message, "data"), do: message
defp decode_message(%{} = message) when not is_map_key(message, "data"), do: message

defp headers(config) do
token = get_token(config)
Expand Down

0 comments on commit 017eb79

Please sign in to comment.