Skip to content

Commit 579232e

Browse files
committed
go fmt
1 parent 863a5e8 commit 579232e

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

restapi/datasource_api_object_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func TestAccRestapiobject_Basic(t *testing.T) {
3333
copy_keys: make([]string, 0),
3434
write_returns_object: false,
3535
create_returns_object: false,
36-
debug: debug,
36+
debug: debug,
3737
}
3838
client, err := NewAPIClient(opt)
3939
if err != nil {

restapi/import_api_object_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func TestAccRestApiObject_importBasic(t *testing.T) {
2626
copy_keys: make([]string, 0),
2727
write_returns_object: false,
2828
create_returns_object: false,
29-
debug: debug,
29+
debug: debug,
3030
}
3131
client, err := NewAPIClient(opt)
3232
if err != nil {

restapi/resource_api_object.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ func resourceRestApiImport(d *schema.ResourceData, meta interface{}) (imported [
133133

134134
hasTrailingSlash := strings.LastIndex(input, "/") == len(input)-1
135135
var n int
136-
if (hasTrailingSlash) {
137-
n = strings.LastIndex(input[0 : len(input) - 1], "/")
136+
if hasTrailingSlash {
137+
n = strings.LastIndex(input[0:len(input)-1], "/")
138138
} else {
139139
n = strings.LastIndex(input, "/")
140140
}
@@ -147,10 +147,10 @@ func resourceRestApiImport(d *schema.ResourceData, meta interface{}) (imported [
147147
d.Set("path", path)
148148

149149
var id string
150-
if (hasTrailingSlash) {
151-
id = input[n + 1 : len(input) - 1]
150+
if hasTrailingSlash {
151+
id = input[n+1 : len(input)-1]
152152
} else {
153-
id = input[n + 1 : len(input)]
153+
id = input[n+1 : len(input)]
154154
}
155155

156156
d.Set("data", fmt.Sprintf(`{ "id": "%s" }`, id))

restapi/resource_api_object_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func TestAccRestApiObject_Basic(t *testing.T) {
4040
copy_keys: make([]string, 0),
4141
write_returns_object: false,
4242
create_returns_object: false,
43-
debug: debug,
43+
debug: debug,
4444
}
4545
client, err := NewAPIClient(opt)
4646
if err != nil {

0 commit comments

Comments
 (0)