1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Removed impossible to achieve condition in reporters

This commit is contained in:
JanHoefelmeyer 2023-11-22 08:17:05 +01:00
parent fb7c77b419
commit a6bf44f7cc

View file

@ -251,10 +251,6 @@ func (r *securityReporter) report(p *processor, domain *Domain) {
req.message(WarnType, "Performed no in-depth test of security.txt.") req.message(WarnType, "Performed no in-depth test of security.txt.")
return return
} }
if len(p.badSecurity) == 0 {
req.message(InfoType, "Found CSAF entry in security.txt.")
return
}
req.Messages = p.badSecurity req.Messages = p.badSecurity
} }