Skip to content

Commit

Permalink
Fix empty string check for password (#4923)
Browse files Browse the repository at this point in the history
  • Loading branch information
y-richie-y authored and briankassouf committed Jul 13, 2018
1 parent 146a684 commit 5d26376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion physical/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func NewMySQLBackend(conf map[string]string, logger log.Logger) (physical.Backen
return nil, fmt.Errorf("missing username")
}
password, ok := conf["password"]
if !ok || username == "" {
if !ok || password == "" {
return nil, fmt.Errorf("missing password")
}

Expand Down

0 comments on commit 5d26376

Please sign in to comment.