We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f9bff4 commit b36df99Copy full SHA for b36df99
plan/plan.go
@@ -18,6 +18,7 @@ package plan
18
19
import (
20
"fmt"
21
+ "slices"
22
"strings"
23
24
"github.com/google/go-cmp/cmp"
@@ -366,15 +367,8 @@ func normalizeDNSName(dnsName string) string {
366
367
}
368
369
func IsManagedRecord(record string, managedRecords, excludeRecords []string) bool {
- for _, r := range excludeRecords {
370
- if record == r {
371
- return false
372
- }
373
374
- for _, r := range managedRecords {
375
376
- return true
377
+ if slices.Contains(excludeRecords, record) {
+ return false
378
379
+ return slices.Contains(managedRecords, record)
380
0 commit comments