From 2329fba0e59d8c38f940d3c5a3e8954268aa9ec1 Mon Sep 17 00:00:00 2001 From: Charles Korn Date: Thu, 23 Nov 2023 20:07:23 +1100 Subject: [PATCH] Fix linting issues in comments (#13178) Signed-off-by: Charles Korn --- discovery/azure/azure.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discovery/azure/azure.go b/discovery/azure/azure.go index 675ff7c21..faccadcf8 100644 --- a/discovery/azure/azure.go +++ b/discovery/azure/azure.go @@ -650,7 +650,7 @@ func (client *azureClient) getNetworkInterfaceByID(ctx context.Context, networkI return &resp.Interface, nil } -// addToCache will add the network interface information for the specified nicID +// addToCache will add the network interface information for the specified nicID. func (d *Discovery) addToCache(nicID string, netInt *armnetwork.Interface) { random := rand.Int63n(int64(time.Duration(d.cfg.RefreshInterval * 3).Seconds())) rs := time.Duration(random) * time.Second @@ -660,7 +660,7 @@ func (d *Discovery) addToCache(nicID string, netInt *armnetwork.Interface) { } // getFromCache will get the network Interface for the specified nicID -// If the cache is disabled nothing will happen +// If the cache is disabled nothing will happen. func (d *Discovery) getFromCache(nicID string) (*armnetwork.Interface, bool) { net, found := d.cache.Get(nicID) return net, found