Remove unused isPolicyRuleGroupsEmpty

This commit is contained in:
bcmmbaga 2024-07-26 17:47:02 +03:00
parent b7fcd0d753
commit c48f244bee
No known key found for this signature in database
GPG Key ID: 7249A19D20613553

View File

@ -575,13 +575,3 @@ func getPostureChecks(account *Account, postureChecksID string) *posture.Checks
} }
return nil 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
}