add missing return
This commit is contained in:
parent
179aa62ad4
commit
e052ded267
|
@ -95,7 +95,7 @@ func resourceCloudFlareRecordCreate(d *schema.ResourceData, meta interface{}) er
|
||||||
|
|
||||||
// Validate type
|
// Validate type
|
||||||
if err := validateRecordType(newRecord.Type, newRecord.Proxied); err != nil {
|
if err := validateRecordType(newRecord.Type, newRecord.Proxied); err != nil {
|
||||||
fmt.Errorf("Error validating record type %q: %s", newRecord.Type, err)
|
return fmt.Errorf("Error validating record type %q: %s", newRecord.Type, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
zoneId, err := client.ZoneIDByName(newRecord.ZoneName)
|
zoneId, err := client.ZoneIDByName(newRecord.ZoneName)
|
||||||
|
|
Loading…
Reference in New Issue