From fb00f229d7ddbca468cb65d7a09bf91b2f0adadf Mon Sep 17 00:00:00 2001 From: Haroon-Dweikat-Ntx Date: Tue, 10 Dec 2024 17:40:58 +0200 Subject: [PATCH] lint fixes --- nutanix/services/prismv2/resource_nutanix_deploy_pc_v2.go | 1 + 1 file changed, 1 insertion(+) diff --git a/nutanix/services/prismv2/resource_nutanix_deploy_pc_v2.go b/nutanix/services/prismv2/resource_nutanix_deploy_pc_v2.go index a9fcaf685..8eb63660a 100644 --- a/nutanix/services/prismv2/resource_nutanix_deploy_pc_v2.go +++ b/nutanix/services/prismv2/resource_nutanix_deploy_pc_v2.go @@ -856,6 +856,7 @@ func expandValue(kvPairValue interface{}) *commonConfig.OneOfKVPairValue { valueData := kvPairValue.([]interface{})[0].(map[string]interface{}) log.Printf("[DEBUG] kvPair valueData: %v", valueData) + //nolint:gocritic // Keeping if-else for clarity in this specific case if valueData["string_list"] != nil && len(valueData["string_list"].([]interface{})) > 0 { log.Printf("[DEBUG] valueData of type string_list") stringList := valueData["string_list"].([]interface{})