From fcafcbf13ff048e1e46535546aa9ff0d9caea63f Mon Sep 17 00:00:00 2001 From: Fadi Abbud Date: Wed, 27 Jul 2022 09:40:10 +0200 Subject: [PATCH] Remove code duplication * The availability check of both the cert and key file is done in the "prepare" function. --- cmd/csaf_checker/main.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cmd/csaf_checker/main.go b/cmd/csaf_checker/main.go index 8e06274..a0c650a 100644 --- a/cmd/csaf_checker/main.go +++ b/cmd/csaf_checker/main.go @@ -171,11 +171,6 @@ func main() { return } - if opts.ClientCert != nil && opts.ClientKey == nil || opts.ClientCert == nil && opts.ClientKey != nil { - log.Println("Both client-key and client-cert options must be set for the authentication.") - return - } - p := newProcessor(opts) report, err := p.run(buildReporters(), domains)