Skip to content

Commit

Permalink
fixing function calls for optional string matching
Browse files Browse the repository at this point in the history
  • Loading branch information
shinmog committed Apr 2, 2024
1 parent 4c59261 commit ba372b4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions objects/address/entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,27 +136,27 @@ func SpecMatches(a, b *Entry) bool {

// Don't compare Name.

if !util.OptionalStringsMatch(a.Description, b.Description) {
if !util.StringsMatch(a.Description, b.Description) {
return false
}

if !util.OrderedListsMatch(a.Tags, b.Tags) {
return false
}

if !util.OptionalStringsMatch(a.IpNetmask, b.IpNetmask) {
if !util.StringsMatch(a.IpNetmask, b.IpNetmask) {
return false
}

if !util.OptionalStringsMatch(a.IpRange, b.IpRange) {
if !util.StringsMatch(a.IpRange, b.IpRange) {
return false
}

if !util.OptionalStringsMatch(a.Fqdn, b.Fqdn) {
if !util.StringsMatch(a.Fqdn, b.Fqdn) {
return false
}

if !util.OptionalStringsMatch(a.IpWildcard, b.IpWildcard) {
if !util.StringsMatch(a.IpWildcard, b.IpWildcard) {
return false
}

Expand Down

0 comments on commit ba372b4

Please sign in to comment.