1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Remove code duplication

* The availability check of both the cert and key file is done in the
"prepare" function.
This commit is contained in:
Fadi Abbud 2022-07-27 09:40:10 +02:00
parent e5f584092c
commit fcafcbf13f

View file

@ -171,11 +171,6 @@ func main() {
return 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) p := newProcessor(opts)
report, err := p.run(buildReporters(), domains) report, err := p.run(buildReporters(), domains)