Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

Commit

Permalink
Fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilde committed Oct 11, 2017
1 parent 7cec33c commit 31e7347
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion runscope/resource_runscope_environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ func createEnvironmentFromResourceData(d *schema.ResourceData) (*runscope.Enviro
environment.Integrations = integrations
}


if attr, ok := d.GetOk("regions"); ok {
regions := []string{}
items := attr.([]interface{})
Expand Down
4 changes: 2 additions & 2 deletions runscope/resource_runscope_environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ func testAccCheckEnvironmentExists(n string) resource.TestCheckFunc {
return fmt.Errorf("Expected %d regions, actual %d", 2, len(environment.Regions))
}

if (foundRecord.Regions[0] != "us1") {
if foundRecord.Regions[0] != "us1" {
return fmt.Errorf("Expected %s, actual %s", "us1", environment.Regions[0])
}

if (foundRecord.Regions[1] != "eu1") {
if foundRecord.Regions[1] != "eu1" {
return fmt.Errorf("Expected %s, actual %s", "eu1", environment.Regions[1])
}

Expand Down

0 comments on commit 31e7347

Please sign in to comment.