Skip to content

Commit

Permalink
Fixed operator
Browse files Browse the repository at this point in the history
  • Loading branch information
gjrtimmer committed Aug 22, 2019
1 parent b22da71 commit e3726ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sqlite3.go
Expand Up @@ -1522,10 +1522,10 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) {
// Before going any further, we need to check that the user
// has provided an username and password within the DSN.
// We are not allowed to continue.
if len(authUser) <= 0 {
if len(authUser) == 0 {
return nil, fmt.Errorf("Missing '_auth_user' while user authentication was requested with '_auth'")
}
if len(authPass) <= 0 {
if len(authPass) == 0 {
return nil, fmt.Errorf("Missing '_auth_pass' while user authentication was requested with '_auth'")
}

Expand Down

0 comments on commit e3726ad

Please sign in to comment.