Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e2fa67f

Browse files
committedMar 28, 2019
Change new(type) to &type{} to keep with package convention
1 parent 06e67a6 commit e2fa67f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎conn.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ func (c *Conn) upgradeTLS(tlsConf *tls.Config) error {
390390
}
391391

392392
// create a local copy of the config to set ServerName for this connection
393-
conf := new(tls.Config)
393+
conf := &tls.Config{}
394394
if tlsConf != nil {
395395
conf = tlsConf.Clone()
396396
}

0 commit comments

Comments
 (0)
Please sign in to comment.