check_certificate_expiration_command.ex: squash a compiler warning

This commit is contained in:
Michael Klishin 2024-11-27 18:26:34 -05:00
parent 4e8098d36c
commit d0b66b8c8f
No known key found for this signature in database
GPG Key ID: 44BF2725475205B2
1 changed files with 1 additions and 1 deletions

View File

@ -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