Skip to content

Commit

Permalink
fmt: apply code simplification as it seems the tendency
Browse files Browse the repository at this point in the history
I usually prefer to have things explicit rather than implicit, but it
seems that the tendency of the project is to simplify code via the fmt
flag, so applying it here as well.
  • Loading branch information
Hugo Rosnet committed Mar 3, 2017
1 parent 5c55e3a commit fee56e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/autoscaling_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ func TestDetachAndTerminateOnDemandInstance(t *testing.T) {
{name: "no err during detach nor terminate",
instancesASG: makeInstancesWithCatalog(
map[string]*instance{
"1": &instance{
"1": {
Instance: &ec2.Instance{
InstanceId: aws.String("1"),
},
Expand All @@ -1184,7 +1184,7 @@ func TestDetachAndTerminateOnDemandInstance(t *testing.T) {
{name: "err during detach not during terminate",
instancesASG: makeInstancesWithCatalog(
map[string]*instance{
"1": &instance{
"1": {
Instance: &ec2.Instance{
InstanceId: aws.String("1"),
},
Expand All @@ -1208,7 +1208,7 @@ func TestDetachAndTerminateOnDemandInstance(t *testing.T) {
{name: "no err during detach but error during terminate",
instancesASG: makeInstancesWithCatalog(
map[string]*instance{
"1": &instance{
"1": {
Instance: &ec2.Instance{
InstanceId: aws.String("1"),
},
Expand All @@ -1232,7 +1232,7 @@ func TestDetachAndTerminateOnDemandInstance(t *testing.T) {
{name: "errors during detach and terminate",
instancesASG: makeInstancesWithCatalog(
map[string]*instance{
"1": &instance{
"1": {
Instance: &ec2.Instance{
InstanceId: aws.String("1"),
},
Expand Down

0 comments on commit fee56e7

Please sign in to comment.