mirror of https://github.com/fluffle/goirc
Fixed formatting with go fmt
This commit is contained in:
parent
39a7da0a37
commit
c8beed09da
|
@ -211,12 +211,12 @@ func (conn *Conn) Connect() error {
|
|||
if !hasPort(conn.cfg.Server) {
|
||||
conn.cfg.Server += ":6697"
|
||||
}
|
||||
if &conn.cfg.Timeout != nil{
|
||||
if &conn.cfg.Timeout != nil {
|
||||
conn.cfg.Timeout = (60 * time.Second)
|
||||
}
|
||||
logging.Info("irc.Connect(): Connecting to %s with SSL.", conn.cfg.Server)
|
||||
dialer := &net.Dialer{
|
||||
Timeout : conn.cfg.Timeout,
|
||||
Timeout: conn.cfg.Timeout,
|
||||
}
|
||||
if s, err := tls.DialWithDialer(dialer, "tcp", conn.cfg.Server, conn.cfg.SSLConfig); err == nil {
|
||||
conn.sock = s
|
||||
|
@ -227,7 +227,7 @@ func (conn *Conn) Connect() error {
|
|||
if !hasPort(conn.cfg.Server) {
|
||||
conn.cfg.Server += ":6667"
|
||||
}
|
||||
if &conn.cfg.Timeout != nil{
|
||||
if &conn.cfg.Timeout != nil {
|
||||
conn.cfg.Timeout = (60 * time.Second)
|
||||
}
|
||||
logging.Info("irc.Connect(): Connecting to %s without SSL.", conn.cfg.Server)
|
||||
|
|
Loading…
Reference in New Issue