Skip to content

Commit e3726ad

Browse files
committed
Fixed operator
1 parent b22da71 commit e3726ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlite3.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,10 +1522,10 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) {
15221522
// Before going any further, we need to check that the user
15231523
// has provided an username and password within the DSN.
15241524
// We are not allowed to continue.
1525-
if len(authUser) <= 0 {
1525+
if len(authUser) == 0 {
15261526
return nil, fmt.Errorf("Missing '_auth_user' while user authentication was requested with '_auth'")
15271527
}
1528-
if len(authPass) <= 0 {
1528+
if len(authPass) == 0 {
15291529
return nil, fmt.Errorf("Missing '_auth_pass' while user authentication was requested with '_auth'")
15301530
}
15311531

0 commit comments

Comments
 (0)