From 209143e11b7e081002045f058ef26a609a96e0a0 Mon Sep 17 00:00:00 2001 From: Charles Treatman Date: Thu, 5 Oct 2023 18:43:27 -0500 Subject: [PATCH] clean up some lingering pointer operations --- equinix/helpers_device.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/equinix/helpers_device.go b/equinix/helpers_device.go index 6d452fbfb..fcf26c1f8 100644 --- a/equinix/helpers_device.go +++ b/equinix/helpers_device.go @@ -241,10 +241,10 @@ func ipAddressSchema() *schema.Resource { func getDeviceMap(device metalv1.Device) map[string]interface{} { networkInfo := getNetworkInfo(device.IpAddresses) sort.SliceStable(networkInfo.Networks, func(i, j int) bool { - famI := int(*networkInfo.Networks[i]["family"].(*int32)) - famJ := int(*networkInfo.Networks[j]["family"].(*int32)) - pubI := *networkInfo.Networks[i]["public"].(*bool) - pubJ := *networkInfo.Networks[j]["public"].(*bool) + famI := int(networkInfo.Networks[i]["family"].(int32)) + famJ := int(networkInfo.Networks[j]["family"].(int32)) + pubI := networkInfo.Networks[i]["public"].(bool) + pubJ := networkInfo.Networks[j]["public"].(bool) return getNetworkRank(famI, pubI) < getNetworkRank(famJ, pubJ) }) keyIDs := []string{}