From 08ec2f4220327ced24164093517d34267f6c2ed9 Mon Sep 17 00:00:00 2001 From: Frank Hunleth Date: Mon, 9 Sep 2024 08:26:28 -0400 Subject: [PATCH] Fix credo predicate name warning --- lib/circuits_uart.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/circuits_uart.ex b/lib/circuits_uart.ex index e428670..25a8473 100644 --- a/lib/circuits_uart.ex +++ b/lib/circuits_uart.ex @@ -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}