clean up the conditional check for Heroku organization

This commit is contained in:
Clint Shryock 2014-10-12 11:58:18 -05:00
parent 5fe2593c16
commit 8ab3ebbfb2
1 changed files with 1 additions and 2 deletions

View File

@ -104,8 +104,7 @@ func resourceHerokuApp() *schema.Resource {
}
func switchHerokuAppCreate(d *schema.ResourceData, meta interface{}) error {
isOrg := d.Get("organization")
if len(isOrg.(string)) != 0 {
if _, ok := d.GetOk("organization"); ok {
return resourceHerokuOrgAppCreate(d, meta)
} else {
return resourceHerokuAppCreate(d, meta)