Skip to content

Commit

Permalink
check_certificate_expiration_command.ex: squash a compiler warning
Browse files Browse the repository at this point in the history
(cherry picked from commit d0b66b8)
  • Loading branch information
michaelklishin committed Nov 27, 2024
1 parent 6cb9737 commit bfdc57f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ defmodule RabbitMQ.CLI.Diagnostics.Commands.CheckCertificateExpirationCommand do
end

def unit_label(1, unit) do
unit |> String.slice(0..-2)
unit |> String.slice(0..-2//-1)
end

def unit_label(_within, unit) do
Expand Down

0 comments on commit bfdc57f

Please sign in to comment.