Skip to content

Commit

Permalink
Remove unnecessary else block
Browse files Browse the repository at this point in the history
  • Loading branch information
JanHoefelmeyer committed Nov 21, 2023
1 parent 4a9f8a6 commit fb7c77b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/csaf_checker/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit fb7c77b

Please sign in to comment.