Skip to content

Commit

Permalink
chore(actions_formatting): apply changes
Browse files Browse the repository at this point in the history
  • Loading branch information
oze4 authored and actions-user committed Feb 1, 2022
1 parent f73806d commit fee0370
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions record.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ func (r records) ReplaceByTypeAndName(ctx context.Context, t RecordType, n strin
func (r records) Update(ctx context.Context, rec []Record) error {
return fmt.Errorf("not implemented : please use ReplaceByTypeAndName instead")
/*
url := "/domains/" + r.config.domainName + "/records"
body, err := buildUpdateRecordRequest(rec)
if err != nil {
return exception.UpdatingRecord(err, r.config.domainName, rec[0].Name)
}
if _, err = makeDo(ctx, r.config, http.MethodPut, url, body, 200); err != nil {
return exception.UpdatingRecord(err, r.config.domainName, rec[0].Name)
}
return nil
url := "/domains/" + r.config.domainName + "/records"
body, err := buildUpdateRecordRequest(rec)
if err != nil {
return exception.UpdatingRecord(err, r.config.domainName, rec[0].Name)
}
if _, err = makeDo(ctx, r.config, http.MethodPut, url, body, 200); err != nil {
return exception.UpdatingRecord(err, r.config.domainName, rec[0].Name)
}
return nil
*/
}

Expand Down

0 comments on commit fee0370

Please sign in to comment.