Skip to content

Commit 82898e3

Browse files
committed
simplify OpenConnector
1 parent 49e2480 commit 82898e3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

driver_go1.10.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,5 @@ import (
1616

1717
// OpenConnector implements driver.DriverContext.
1818
func (d MySQLDriver) OpenConnector(dsn string) (driver.Connector, error) {
19-
c, err := ParseDSN(dsn)
20-
if err != nil {
21-
return nil, err
22-
}
23-
24-
return c, nil
19+
return ParseDSN(dsn)
2520
}

0 commit comments

Comments
 (0)