Skip to content

Commit

Permalink
Small simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
katbyte committed May 19, 2018
1 parent 5697c62 commit 9fab94e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions azurerm/data_source_dns_zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ package azurerm
import (
"context"
"fmt"
"reflect"


"github.com/Azure/azure-sdk-for-go/services/dns/mgmt/2016-04-01/dns"
"github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2017-05-10/resources"
"github.com/hashicorp/terraform/helper/schema"
Expand Down Expand Up @@ -76,7 +75,7 @@ func dataSourceArmDnsZoneRead(d *schema.ResourceData, meta interface{}) error {
return err
}

if reflect.DeepEqual(resp, dns.Zone{}) {
if resourceGroup == "" {
return fmt.Errorf("Error: DNS Zone %q was not found", name, resourceGroup)
}
}
Expand Down

0 comments on commit 9fab94e

Please sign in to comment.