From 2e90c3a7e8461061df9d8d494c3d0bc3a87e62d7 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Sun, 26 Feb 2023 20:38:32 +0800 Subject: [PATCH] chore: format code --- component/tls/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/component/tls/config.go b/component/tls/config.go index 50daad46..f0155d78 100644 --- a/component/tls/config.go +++ b/component/tls/config.go @@ -14,7 +14,7 @@ import ( xtls "github.com/xtls/go" ) -var trustCert,_ = x509.SystemCertPool() +var trustCert, _ = x509.SystemCertPool() var mutex sync.RWMutex var errNotMacth error = errors.New("certificate fingerprints do not match") @@ -31,10 +31,10 @@ func AddCertificate(certificate string) error { return nil } -func ResetCertificate(){ +func ResetCertificate() { mutex.Lock() defer mutex.Unlock() - trustCert,_=x509.SystemCertPool() + trustCert, _ = x509.SystemCertPool() } func verifyFingerprint(fingerprint *[32]byte) func(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error {