Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorszun committed Apr 26, 2020
1 parent 0c28793 commit 036ac06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/gen_rmq/consumer/queue_configuration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ defmodule GenRMQ.Consumer.QueueConfiguration do
|> Keyword.merge(option_list)
end

defp remove_keyword(word_list, [], _argument), do: word_list

defp remove_keyword(word_list, option_arguments, argument) do
case Enum.find(option_arguments, fn arg -> elem(arg, 0) == argument.name end) do
nil -> word_list
Expand Down

0 comments on commit 036ac06

Please sign in to comment.