From e8a3c86a6c6382ae7439343bf0211e1c7987cfb6 Mon Sep 17 00:00:00 2001 From: Thomas Dziedzic Date: Tue, 2 Jan 2024 14:55:17 -0600 Subject: [PATCH] fix warning from elixir 1.16.0 --- lib/libcluster_ec2.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libcluster_ec2.ex b/lib/libcluster_ec2.ex index af4e563..41d8661 100644 --- a/lib/libcluster_ec2.ex +++ b/lib/libcluster_ec2.ex @@ -22,7 +22,7 @@ defmodule ClusterEC2 do @spec instance_region() :: binary() def instance_region do case get("/placement/availability-zone/") do - {:ok, %{status: 200, body: body}} -> String.slice(body, 0..-2) + {:ok, %{status: 200, body: body}} -> String.slice(body, 0..-2//1) _ -> "" end end