Skip to content

Commit bfdc57f

Browse files
check_certificate_expiration_command.ex: squash a compiler warning
(cherry picked from commit d0b66b8)
1 parent 6cb9737 commit bfdc57f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbitmq_cli/lib/rabbitmq/cli/diagnostics/commands/check_certificate_expiration_command.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ defmodule RabbitMQ.CLI.Diagnostics.Commands.CheckCertificateExpirationCommand do
7777
end
7878

7979
def unit_label(1, unit) do
80-
unit |> String.slice(0..-2)
80+
unit |> String.slice(0..-2//-1)
8181
end
8282

8383
def unit_label(_within, unit) do

0 commit comments

Comments
 (0)