Skip to content

Commit

Permalink
trying to pass weird github test
Browse files Browse the repository at this point in the history
  • Loading branch information
bradhanks committed Jan 4, 2024
1 parent c46c65e commit ee1195c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ defmodule Credo.Check.Consistency.MultiAliasImportRequireUse.Collector do
aliases =
case arguments do
[{:__aliases__, _, nested_modules}] when length(nested_modules) > 1 ->
base_name = Credo.Backports.Enum.slice(nested_modules, 0..-2//-1)
base_name = Credo.Backports.Enum.slice(nested_modules, Range.new(0, -2, -1))
{:single, base_name}

[{{:., _, [{:__aliases__, _, _namespaces}, :{}]}, _, _nested_aliases}] ->
Expand Down

0 comments on commit ee1195c

Please sign in to comment.