clean up the conditional check for Heroku organization
This commit is contained in:
parent
5fe2593c16
commit
8ab3ebbfb2
|
@ -104,8 +104,7 @@ func resourceHerokuApp() *schema.Resource {
|
||||||
}
|
}
|
||||||
|
|
||||||
func switchHerokuAppCreate(d *schema.ResourceData, meta interface{}) error {
|
func switchHerokuAppCreate(d *schema.ResourceData, meta interface{}) error {
|
||||||
isOrg := d.Get("organization")
|
if _, ok := d.GetOk("organization"); ok {
|
||||||
if len(isOrg.(string)) != 0 {
|
|
||||||
return resourceHerokuOrgAppCreate(d, meta)
|
return resourceHerokuOrgAppCreate(d, meta)
|
||||||
} else {
|
} else {
|
||||||
return resourceHerokuAppCreate(d, meta)
|
return resourceHerokuAppCreate(d, meta)
|
||||||
|
|
Loading…
Reference in New Issue