Skip to content

Commit e0dae79

Browse files
committed
SUMO-0 fixing lint
1 parent 3ec8a76 commit e0dae79

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

sumologic/resource_sumologic_field.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ func resourceSumologicFieldUpdate(d *schema.ResourceData, meta interface{}) erro
122122

123123
id := d.Get("field_id").(string)
124124
name := d.Get("field_name").(string)
125-
tpe := d.Get("data_type").(string)
126125
state := d.Get("state").(string)
127126
if id == "" {
128127
newId, err := c.FindFieldId(name)
@@ -131,7 +130,7 @@ func resourceSumologicFieldUpdate(d *schema.ResourceData, meta interface{}) erro
131130
}
132131
id = newId
133132
}
134-
f, err := c.GetField(id)
133+
_, err := c.GetField(id)
135134

136135
if err != nil {
137136
return err

sumologic/resource_sumologic_field_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88

99
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
1010
"github.com/hashicorp/terraform-plugin-sdk/terraform"
11-
"regexp"
1211
)
1312

1413
func TestAccSumologicField_basic(t *testing.T) {

0 commit comments

Comments
 (0)