Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroon-Dweikat-Ntx committed Dec 10, 2024
1 parent 6a07a7c commit fb00f22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nutanix/services/prismv2/resource_nutanix_deploy_pc_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{})
Expand Down

0 comments on commit fb00f22

Please sign in to comment.