cmd/derper: fix real staticcheck failure from prior commit

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2021-09-08 17:00:52 -07:00
parent d8c5d00ecb
commit d5851d2e06

View File

@ -206,7 +206,8 @@ func main() {
if serveTLS {
log.Printf("derper: serving on %s with TLS", *addr)
certManager, err := certProviderByCertMode(*certMode, *certDir, *hostname)
var certManager certProvider
certManager, err = certProviderByCertMode(*certMode, *certDir, *hostname)
if err != nil {
log.Fatalf("derper: can not start cert provider: %v", err)
}