From 7c941e468a0b758a18074b1b2d873d31cccf111d Mon Sep 17 00:00:00 2001 From: Jack Batzner Date: Thu, 16 Jan 2020 11:58:59 -0600 Subject: [PATCH] Remove redundant nil check --- .../internal/services/storage/resource_arm_storage_account.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azurerm/internal/services/storage/resource_arm_storage_account.go b/azurerm/internal/services/storage/resource_arm_storage_account.go index 6d44abe8084de..b5e1eb904a676 100644 --- a/azurerm/internal/services/storage/resource_arm_storage_account.go +++ b/azurerm/internal/services/storage/resource_arm_storage_account.go @@ -1392,7 +1392,7 @@ func expandBlobPropertiesDeleteRetentionPolicy(input []interface{}) *storage.Del Enabled: utils.Bool(false), } - if input == nil || len(input) == 0 { + if len(input) == 0 { return &deleteRetentionPolicy } @@ -1407,7 +1407,7 @@ func expandBlobPropertiesDeleteRetentionPolicy(input []interface{}) *storage.Del func expandBlobPropertiesCors(input []interface{}) *storage.CorsRules { blobCorsRules := storage.CorsRules{} - if input == nil || len(input) == 0 { + if len(input) == 0 { return &blobCorsRules }