Skip to content

Commit 3b64e83

Browse files
committed
Fix code style
1 parent 207637f commit 3b64e83

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/services/cognitive/cognitive_account_rai_blocklist_resource.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,13 @@ func (c CognitiveRaiBlocklistResource) Create() sdk.ResourceFunc {
8989

9090
payload := &raiblocklists.RaiBlocklist{
9191
Properties: &raiblocklists.RaiBlocklistProperties{},
92+
Tags: pointer.To(model.Tags),
9293
}
9394

9495
if model.Description != "" {
9596
payload.Properties.Description = &model.Description
9697
}
9798

98-
if model.Tags != nil {
99-
payload.Tags = pointer.To(model.Tags)
100-
}
101-
10299
if _, err := client.CreateOrUpdate(ctx, id, *payload); err != nil {
103100
return fmt.Errorf("creating %s: %+v", id, err)
104101
}

0 commit comments

Comments
 (0)