remove useless check

This commit is contained in:
Sebastien Blot 2023-12-04 23:48:48 +01:00
parent 059c0adb93
commit 722ce46946
No known key found for this signature in database
GPG key ID: DFC2902F40449F6A

View file

@ -37,11 +37,6 @@ func LoadAppsecRules(hubInstance *cwhub.Hub) error {
continue
}
if rule.Type != cwhub.APPSEC_RULES {
log.Warnf("unexpected type %s instead of %s for file %s", rule.Type, cwhub.APPSEC_RULES, hubAppsecRuleItem.State.LocalPath)
continue
}
rule.hash = hubAppsecRuleItem.State.LocalHash
rule.version = hubAppsecRuleItem.Version