diff --git a/cluster-autoscaler/cloudprovider/azure/azure_cache.go b/cluster-autoscaler/cloudprovider/azure/azure_cache.go index d66714d465c2..cd526fb088b0 100644 --- a/cluster-autoscaler/cloudprovider/azure/azure_cache.go +++ b/cluster-autoscaler/cloudprovider/azure/azure_cache.go @@ -170,7 +170,6 @@ func (m *azureCache) regenerate() error { return nil } - // fetchAzureResources retrieves and updates the cached Azure resources. // // This function performs the following: diff --git a/cluster-autoscaler/cloudprovider/azure/azure_cloud_provider.go b/cluster-autoscaler/cloudprovider/azure/azure_cloud_provider.go index d39b5dc2af4c..43796a11881b 100644 --- a/cluster-autoscaler/cloudprovider/azure/azure_cloud_provider.go +++ b/cluster-autoscaler/cloudprovider/azure/azure_cloud_provider.go @@ -125,7 +125,7 @@ func (azure *AzureCloudProvider) NodeGroupForNode(node *apiv1.Node) (cloudprovid func (azure *AzureCloudProvider) HasInstance(node *apiv1.Node) (bool, error) { ng, err := azure.NodeGroupForNode(node) if ng != nil { - return false, err + return false, err } return true, nil }