Skip to content

Commit

Permalink
Fix credo predicate name warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed Sep 9, 2024
1 parent 8d5c905 commit 08ec2f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/circuits_uart.ex
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ defmodule Circuits.UART do
@spec find_pids() :: [{binary | :closed, pid()}]
def find_pids() do
Process.list()
|> Enum.filter(&is_circuits_uart_process/1)
|> Enum.filter(&circuits_uart_process?/1)
|> Enum.map(&circuits_uart_info/1)
end

defp is_circuits_uart_process(pid) do
defp circuits_uart_process?(pid) do
case Process.info(pid, :dictionary) do
{:dictionary, dictionary} ->
Keyword.get(dictionary, :"$initial_call") == {Circuits.UART, :init, 1}
Expand Down

0 comments on commit 08ec2f4

Please sign in to comment.