Skip to content

Commit 0effa80

Browse files
committed
add missing return
1 parent 6bac97e commit 0effa80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builtin/providers/cloudflare/resource_cloudflare_record.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func resourceCloudFlareRecordCreate(d *schema.ResourceData, meta interface{}) er
9595

9696
// Validate type
9797
if err := validateRecordType(newRecord.Type, newRecord.Proxied); err != nil {
98-
fmt.Errorf("Error validating record type %q: %s", newRecord.Type, err)
98+
return fmt.Errorf("Error validating record type %q: %s", newRecord.Type, err)
9999
}
100100

101101
zoneId, err := client.ZoneIDByName(newRecord.ZoneName)

0 commit comments

Comments
 (0)