From 74daf7395711a7daadb8e6f1c62472c0df1ea377 Mon Sep 17 00:00:00 2001 From: sagnghos Date: Tue, 7 Jan 2025 18:16:09 +0000 Subject: [PATCH] extra spaces removed --- spanner/client.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/spanner/client.go b/spanner/client.go index 4e91af5b0668..2b27b4ff1384 100644 --- a/spanner/client.go +++ b/spanner/client.go @@ -1432,7 +1432,6 @@ func NewMtlsConn(endpoint, caCertificate, clientCertificate, clientCertificateKe // Create a TLSConfig with the client certificate source. capool, err := CertPool(caCertificate) - if err != nil { return nil, fmt.Errorf("failed to load root CA: %w", err) } @@ -1448,17 +1447,13 @@ func NewMtlsConn(endpoint, caCertificate, clientCertificate, clientCertificateKe } creds, err := advancedtls.NewClientCreds(options) - if err != nil { return nil, fmt.Errorf("failed to create mTLS credentials: %w", err) } - grpcConn, err := grpc.NewClient(endpoint, grpc.WithTransportCredentials(creds)) - if err != nil { return nil, err } - return grpcConn, nil }