Remove bad error check

pull/594/head
Jack Christensen 2019-08-24 16:29:44 -05:00
parent 31705e586a
commit 180dfe6954
1 changed files with 0 additions and 4 deletions

View File

@ -153,10 +153,6 @@ func connect(ctx context.Context, config *ConnConfig) (c *Conn, err error) {
c.log(ctx, LogLevelInfo, "Dialing PostgreSQL server", map[string]interface{}{"host": config.Config.Host}) c.log(ctx, LogLevelInfo, "Dialing PostgreSQL server", map[string]interface{}{"host": config.Config.Host})
} }
c.pgConn, err = pgconn.ConnectConfig(ctx, &config.Config) c.pgConn, err = pgconn.ConnectConfig(ctx, &config.Config)
if err != nil {
return nil, err
}
if err != nil { if err != nil {
if c.shouldLog(LogLevelError) { if c.shouldLog(LogLevelError) {
c.log(ctx, LogLevelError, "connect failed", map[string]interface{}{"err": err}) c.log(ctx, LogLevelError, "connect failed", map[string]interface{}{"err": err})