mirror of
https://github.com/MariaDB/server.git
synced 2025-09-11 05:52:26 +03:00
cleanup: if there is return from if-part, we don't need else statement
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user