From ceab00b0c8ac072d83f565ac6c0f86bf8e0c22f3 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 10 Dec 2003 22:26:31 +0300 Subject: cleanup: if there is return from if-part, we don't need else statement --- sql/item_strfunc.cc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'sql/item_strfunc.cc') diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index 40b18755744..7434f6bd57b 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -1706,14 +1706,11 @@ inline String* alloc_buffer(String *res,String *str,String *tmp_value, str->length(length); return str; } - else - { - if (tmp_value->alloc(length)) - return 0; - (void) tmp_value->copy(*res); - tmp_value->length(length); - return tmp_value; - } + if (tmp_value->alloc(length)) + return 0; + (void) tmp_value->copy(*res); + tmp_value->length(length); + return tmp_value; } res->length(length); return res; -- cgit v1.2.1