Skip to content

Commit

Permalink
fix: sweeper typo
Browse files Browse the repository at this point in the history
  • Loading branch information
DXTimer committed Mar 13, 2024
1 parent 8e52e44 commit d4f3379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/sweep/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func main() {
for _, record := range records.Data {
if !record.SystemRecord {
_, err := dnsimpleClient.Zones.DeleteRecord(context.Background(), account, domainName, record.ID)
if err != nil && !strings.Contains(err.Error(), "404") {
if err != nil && strings.Contains(err.Error(), "404") {
// 404 is expected if the record was already deleted
} else if err != nil {
panic(err)
Expand Down

0 comments on commit d4f3379

Please sign in to comment.