mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: remove redundant parentheses in if
statements
This commit is contained in:
@@ -64,7 +64,7 @@ pub fn (conn Connection) select_db(dbname string) ?bool {
|
||||
|
||||
pub fn (conn Connection) change_user(username, password, dbname string) ?bool {
|
||||
mut ret := true
|
||||
if (dbname != '') {
|
||||
if dbname != '' {
|
||||
ret = mysql_change_user(conn.conn, username.str, password.str, dbname.str)
|
||||
} else {
|
||||
ret = mysql_change_user(conn.conn, username.str, password.str, 0)
|
||||
|
Reference in New Issue
Block a user