From cfe5c049781d03b6fbf4126d7feb55681b83477e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergen=20Yal=C3=A7=C4=B1n?= Date: Thu, 21 Mar 2024 18:23:46 +0300 Subject: [PATCH] Add //nolint:gocyclo for custom diff function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sergen Yalçın --- config/apimanagement/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/apimanagement/config.go b/config/apimanagement/config.go index 4eb4fc712..c38b61e21 100644 --- a/config/apimanagement/config.go +++ b/config/apimanagement/config.go @@ -106,7 +106,7 @@ func Configure(p *config.Provider) { }) } -func apiIdCustomDiff(diff *terraform.InstanceDiff, state *terraform.InstanceState, resourceConfig *terraform.ResourceConfig) (*terraform.InstanceDiff, error) { +func apiIdCustomDiff(diff *terraform.InstanceDiff, state *terraform.InstanceState, resourceConfig *terraform.ResourceConfig) (*terraform.InstanceDiff, error) { //nolint:gocyclo if state == nil || state.Empty() || diff == nil || diff.Empty() || diff.Destroy { return diff, nil }