From 42ae9aaa584bc08ef5396fb391a4a92d90008f84 Mon Sep 17 00:00:00 2001 From: aram price Date: Fri, 2 Jun 2023 10:49:25 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9A=A0=EF=B8=8F=20=20address=20linter=20erro?= =?UTF-8?q?rs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acceptance-tests/actors/azure.go | 11 ++--------- azure/client.go | 2 +- azure/client_wrappers.go | 1 - 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/acceptance-tests/actors/azure.go b/acceptance-tests/actors/azure.go index e174e367f..2d375e3d7 100644 --- a/acceptance-tests/actors/azure.go +++ b/acceptance-tests/actors/azure.go @@ -41,15 +41,8 @@ func (z azureLBHelper) getLoadBalancer(resourceGroupName, loadBalancerName strin return true, nil } -func (z azureLBHelper) getApplicationGateway(resourceGroupName, applicationGatewayName string) (bool, error) { - _, err := z.applicationGatewaysClient.Get(context.TODO(), fmt.Sprintf("%s-bosh", resourceGroupName), applicationGatewayName, nil) - if err != nil { - return false, err - } - return true, nil -} - -func (z azureLBHelper) GetLBArgs() []string { +// GetLBArgs Unused: required by interface for acceptance-tests/actors/iaas_helper.go:23 +func (z azureLBHelper) GetLBArgs() []string { //nolint:unused return []string{"--lb-type", "concourse"} } diff --git a/azure/client.go b/azure/client.go index bfd91feb2..64f0c6bb0 100644 --- a/azure/client.go +++ b/azure/client.go @@ -29,7 +29,7 @@ func (c Client) CheckExists(envID string) (bool, error) { return false, fmt.Errorf("Check existence for resource group %s: %s", resourceGroupName, err) } - if response.Success == true { + if response.Success { return true, nil } diff --git a/azure/client_wrappers.go b/azure/client_wrappers.go index 12a75da40..ab9d23680 100644 --- a/azure/client_wrappers.go +++ b/azure/client_wrappers.go @@ -43,4 +43,3 @@ func (c AzureStorageClientWrapper) List(ctx context.Context) (armstorage.Account return armstorage.AccountListResult{Value: result}, nil } -