Fixed formatting with go fmt

This commit is contained in:
kyle 2014-12-20 16:56:58 +02:00
parent 39a7da0a37
commit c8beed09da
1 changed files with 7 additions and 7 deletions

View File

@ -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)