Skip to content

Commit

Permalink
Remove redundant nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Batzner committed Jan 16, 2020
1 parent f2baa9b commit 7c941e4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
}

Expand Down

0 comments on commit 7c941e4

Please sign in to comment.