Commit ac6a397e authored by Elliot Rushton's avatar Elliot Rushton

Apply suggestion to drivers/amazonec2/amazonec2.go

parent b40748bc
......@@ -956,6 +956,7 @@ func (d *Driver) getInstance() (*ec2.Instance, error) {
if instances == nil || len(instances.Reservations) < 1 || len(instances.Reservations[0].Instances) < 1 {
return nil, fmt.Errorf("Error getting instance: %v", errorUnprocessableResponse)
}
return instances.Reservations[0].Instances[0], nil
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment