From fb7c77b419099c8c215f1d0c432b6417b41dbcc4 Mon Sep 17 00:00:00 2001 From: JanHoefelmeyer Date: Tue, 21 Nov 2023 13:45:46 +0100 Subject: [PATCH] Remove unnecessary else block --- cmd/csaf_checker/processor.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/csaf_checker/processor.go b/cmd/csaf_checker/processor.go index 2e61ae8..2a5161c 100644 --- a/cmd/csaf_checker/processor.go +++ b/cmd/csaf_checker/processor.go @@ -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 }