From e00aaccbc3da261cfb8fd66ce856f94cbcb1cda1 Mon Sep 17 00:00:00 2001 From: Brad Hanks Date: Thu, 4 Jan 2024 11:50:20 -0700 Subject: [PATCH] trying to pass weird github test --- lib/credo/cli/command/explain/output/default.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/credo/cli/command/explain/output/default.ex b/lib/credo/cli/command/explain/output/default.ex index 300c178a1..eaed5d79d 100644 --- a/lib/credo/cli/command/explain/output/default.ex +++ b/lib/credo/cli/command/explain/output/default.ex @@ -269,7 +269,7 @@ defmodule Credo.CLI.Command.Explain.Output.Default do |> String.trim() |> String.split("\n") |> Enum.flat_map(&format_explanation(&1, outer_color)) - |> Credo.Backports.Enum.slice(0..-2//-1) + |> Credo.Backports.Enum.slice(%Range{first: 0, last: -2, step: -1}) |> UI.puts() UI.puts_edge([outer_color, :faint])