We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b22da71 commit e3726adCopy full SHA for e3726ad
sqlite3.go
@@ -1522,10 +1522,10 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) {
1522
// Before going any further, we need to check that the user
1523
// has provided an username and password within the DSN.
1524
// We are not allowed to continue.
1525
- if len(authUser) <= 0 {
+ if len(authUser) == 0 {
1526
return nil, fmt.Errorf("Missing '_auth_user' while user authentication was requested with '_auth'")
1527
}
1528
- if len(authPass) <= 0 {
+ if len(authPass) == 0 {
1529
return nil, fmt.Errorf("Missing '_auth_pass' while user authentication was requested with '_auth'")
1530
1531
0 commit comments