Skip to content

Commit

Permalink
Change new(type) to &type{} to keep with package convention
Browse files Browse the repository at this point in the history
  • Loading branch information
iaburton committed Mar 28, 2019
1 parent 06e67a6 commit e2fa67f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit e2fa67f

Please sign in to comment.