From a8ff38f7900aee0016b9d2f822f49852c1753553 Mon Sep 17 00:00:00 2001 From: Chelsea Holland Komlo Date: Tue, 29 May 2018 17:07:38 -0400 Subject: [PATCH] remove unnecessary type conversation --- helper/tlsutil/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/tlsutil/config.go b/helper/tlsutil/config.go index 9fa022736..8db29e088 100644 --- a/helper/tlsutil/config.go +++ b/helper/tlsutil/config.go @@ -147,7 +147,7 @@ func (c *Config) AppendCA(pool *x509.CertPool) error { return fmt.Errorf("Failed to read CA file: %v", err) } - block, _ := pem.Decode([]byte(data)) + block, _ := pem.Decode(data) if block == nil { return fmt.Errorf("Failed to decode CA file from pem format") }