mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 10:15:29 +02:00
cleanup: if there is return from if-part, we don't need else statement
This commit is contained in:
parent
4c00978b43
commit
ceab00b0c8
11 changed files with 36 additions and 56 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue