mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
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
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user