1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 18:15:42 +01:00

Remove unnecessary else block

This commit is contained in:
JanHoefelmeyer 2023-11-21 13:45:46 +01:00
parent 4a9f8a6f03
commit fb7c77b419

View file

@ -1271,9 +1271,8 @@ func (p *processor) checkSecurity(domain string, legacy bool) (int, string) {
if msg == "" {
if !legacy {
return 0, "Found valid security.txt within the well-known directory"
} else {
return 2, "Found valid security.txt in the legacy location"
}
return 2, "Found valid security.txt in the legacy location"
}
return 1, folder + "security.txt: " + msg
}