Skip to content

Commit

Permalink
Fix elixir 1.16.x warning for Enum.slice negative index
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo Brancaleoni committed Mar 19, 2024
1 parent db69e1a commit a3708d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/open_api/processor/naming.ex
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ defmodule OpenAPI.Processor.Naming do
modules =
if id do
String.split(id, "/", trim: true)
|> Enum.slice(0..-2)
|> Enum.slice(0..-2//1)
else
[]
end
Expand Down

0 comments on commit a3708d1

Please sign in to comment.