Skip to content

Commit 102ed73

Browse files
author
yuanhaojin
committed
Unified code style
1 parent e7fd038 commit 102ed73

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tencentcloud/resource_tc_mysql_instance.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -991,9 +991,8 @@ func mysqlAllInstanceRoleUpdate(ctx context.Context, d *schema.ResourceData, met
991991
oldValue, newValue := d.GetChange("tags")
992992
replaceTags, deleteTags := diffTags(oldValue.(map[string]interface{}), newValue.(map[string]interface{}))
993993

994-
tagService := TagService{
995-
client: meta.(*TencentCloudClient).apiV3Conn,
996-
}
994+
tcClient := meta.(*TencentCloudClient).apiV3Conn
995+
tagService := &TagService{client: tcClient}
997996
region := meta.(*TencentCloudClient).apiV3Conn.Region
998997
resourceName := BuildTagResourceName("cdb", "instanceId", region, d.Id())
999998
err := tagService.ModifyTags(ctx, resourceName, replaceTags, deleteTags)

0 commit comments

Comments
 (0)