mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Remove unnecessary else block
This commit is contained in:
parent
4a9f8a6f03
commit
fb7c77b419
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue