2
0

Remove bad error check

This commit is contained in:
Jack Christensen
2019-08-24 16:29:44 -05:00
parent 31705e586a
commit 180dfe6954
-4
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.pgConn, err = pgconn.ConnectConfig(ctx, &config.Config)
if err != nil {
return nil, err
}
if err != nil {
if c.shouldLog(LogLevelError) {
c.log(ctx, LogLevelError, "connect failed", map[string]interface{}{"err": err})