diff options
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r-- | sql/item_sum.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc index e18fa83e49d..4121fa65433 100644 --- a/sql/item_sum.cc +++ b/sql/item_sum.cc @@ -1153,8 +1153,7 @@ String *Item_sum_udf_float::val_str(String *str) double nr=val(); if (null_value) return 0; /* purecov: inspected */ - else - str->set(nr,decimals); + str->set(nr,decimals); return str; } @@ -1172,8 +1171,7 @@ String *Item_sum_udf_int::val_str(String *str) longlong nr=val_int(); if (null_value) return 0; - else - str->set(nr); + str->set(nr); return str; } |