From e2fa67fb349a4233d721b1c67e6dadbbf57a7f69 Mon Sep 17 00:00:00 2001 From: iaburton Date: Thu, 28 Mar 2019 14:55:41 -0500 Subject: [PATCH] Change new(type) to &type{} to keep with package convention --- conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conn.go b/conn.go index 5f4ce8d2..f4180a4d 100644 --- a/conn.go +++ b/conn.go @@ -390,7 +390,7 @@ func (c *Conn) upgradeTLS(tlsConf *tls.Config) error { } // create a local copy of the config to set ServerName for this connection - conf := new(tls.Config) + conf := &tls.Config{} if tlsConf != nil { conf = tlsConf.Clone() }