Skip to content

Commit 20c440c

Browse files
author
anonymous
committed
fix: handle unused definitions
1 parent 46cd68a commit 20c440c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tencentcloud/resource_tc_tem_application_service.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ package tencentcloud
3333
import (
3434
"context"
3535
"fmt"
36+
"log"
37+
"strings"
38+
3639
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
3740
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
3841
tem "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tem/v20210701"
3942
"github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper"
40-
"log"
41-
"strings"
4243
)
4344

4445
func resourceTencentCloudTemApplicationService() *schema.Resource {
@@ -119,7 +120,6 @@ func resourceTencentCloudTemApplicationServiceCreate(d *schema.ResourceData, met
119120

120121
var (
121122
request = tem.NewCreateApplicationServiceRequest()
122-
response = tem.NewCreateApplicationServiceResponse()
123123
environmentId string
124124
applicationId string
125125
)
@@ -167,7 +167,6 @@ func resourceTencentCloudTemApplicationServiceCreate(d *schema.ResourceData, met
167167
} else {
168168
log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString())
169169
}
170-
response = result
171170
return nil
172171
})
173172
if err != nil {

0 commit comments

Comments
 (0)