mirror of
https://github.com/netbirdio/netbird.git
synced 2025-01-19 04:19:48 +01:00
Remove unused isPolicyRuleGroupsEmpty
This commit is contained in:
parent
b7fcd0d753
commit
c48f244bee
@ -575,13 +575,3 @@ func getPostureChecks(account *Account, postureChecksID string) *posture.Checks
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// isPolicyRuleGroupsEmpty checks if a given policy has rules with empty sources and destinations.
|
||||
func isPolicyRuleGroupsEmpty(policy *Policy) bool {
|
||||
for _, rule := range policy.Rules {
|
||||
if len(rule.Sources) != 0 && len(rule.Destinations) != 0 {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user