summaryrefslogtreecommitdiff
path: root/sql/sql_analyse.cc
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2003-12-10 22:26:31 +0300
committerunknown <konstantin@mysql.com>2003-12-10 22:26:31 +0300
commitceab00b0c8ac072d83f565ac6c0f86bf8e0c22f3 (patch)
treebbfbb126a26544bfe84128c5ea57d8cc2355ef69 /sql/sql_analyse.cc
parent4c00978b43921525d59f52da1ad13b516da16f1e (diff)
downloadmariadb-git-ceab00b0c8ac072d83f565ac6c0f86bf8e0c22f3.tar.gz
cleanup: if there is return from if-part, we don't need else statement
Diffstat (limited to 'sql/sql_analyse.cc')
-rw-r--r--sql/sql_analyse.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/sql/sql_analyse.cc b/sql/sql_analyse.cc
index d6abe6497df..bd8c0e5ba87 100644
--- a/sql/sql_analyse.cc
+++ b/sql/sql_analyse.cc
@@ -220,8 +220,7 @@ bool test_if_number(NUM_INFO *info, const char *str, uint str_len)
info->is_float = 1; // we can't use variable decimals here
return 1;
}
- else
- return 0;
+ return 0;
}
for (str++; *(end - 1) == '0'; end--); // jump over zeros at the end
if (str == end) // number was something like '123.000'
@@ -236,11 +235,8 @@ bool test_if_number(NUM_INFO *info, const char *str, uint str_len)
info->dval = atod(begin);
return 1;
}
- else
- return 0;
}
- else
- return 0;
+ return 0;
}