Skip to content

Commit

Permalink
Credo didn't like an if using brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
joshk committed Feb 7, 2025
1 parent 5e85294 commit 70eacb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ defmodule NervesHubWeb.Components.HealthStatus do
"#{Enum.join(key_parts, " ")}: #{reasons["value"]}#{delimiter} (threshold is #{reasons["threshold"]}#{delimiter})"
end)

if(!Enum.empty?(reasons)) do
if Enum.any?(reasons) do
"#{String.capitalize(status)}: #{key_strings}"
end
end
Expand Down

0 comments on commit 70eacb5

Please sign in to comment.