Skip to content

Commit 0c230ce

Browse files
Jez-Aclaude
andcommitted
fix: Name bare _ wildcards to satisfy Credo consistency check
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 698e096 commit 0c230ce

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/zexbox/auto_escalation/adf_builder.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,5 +182,5 @@ defmodule Zexbox.AutoEscalation.AdfBuilder do
182182
defp has_content?(nil), do: false
183183
defp has_content?(""), do: false
184184
defp has_content?(str) when is_binary(str), do: String.trim(str) != ""
185-
defp has_content?(_), do: false
185+
defp has_content?(_other), do: false
186186
end

test/zexbox/auto_escalation/adf_builder_test.exs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ defmodule Zexbox.AutoEscalation.AdfBuilderTest do
4040
test "first block is a telemetry paragraph with Tempo and Kibana links" do
4141
with_all_urls(fn ->
4242
result = AdfBuilder.build_description(runtime_error(), %{}, %{})
43-
[telemetry | _] = result.content
43+
[telemetry | _rest] = result.content
4444
assert telemetry.type == "paragraph"
4545
json = Jason.encode!(telemetry)
4646
assert json =~ "Tempo Trace View"
@@ -53,7 +53,7 @@ defmodule Zexbox.AutoEscalation.AdfBuilderTest do
5353
test "shows '(Missing)' for unavailable telemetry URLs" do
5454
with_no_urls(fn ->
5555
result = AdfBuilder.build_description(runtime_error(), %{}, %{})
56-
[telemetry | _] = result.content
56+
[telemetry | _rest] = result.content
5757
json = Jason.encode!(telemetry)
5858
assert json =~ "Tempo Trace View (Missing)"
5959
assert json =~ "Kibana Logs (Missing)"
@@ -93,8 +93,8 @@ defmodule Zexbox.AutoEscalation.AdfBuilderTest do
9393
assert json =~ "This happened during sync."
9494
assert json =~ "Error Details"
9595

96-
{cd_pos, _} = :binary.match(json, "This happened during sync.")
97-
{ed_pos, _} = :binary.match(json, "Error Details")
96+
{cd_pos, _len} = :binary.match(json, "This happened during sync.")
97+
{ed_pos, _len} = :binary.match(json, "Error Details")
9898
assert cd_pos < ed_pos
9999
end)
100100
end

0 commit comments

Comments
 (0)