1
0
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:
Alexey
2020-03-29 11:08:42 +03:00
committed by GitHub
parent e09447d011
commit a333ac1888
13 changed files with 16 additions and 18 deletions

View File

@@ -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)