1
0
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:
konstantin@mysql.com
2003-12-10 22:26:31 +03:00
parent ea81fd27bb
commit 124c4ca346
11 changed files with 36 additions and 56 deletions

View File

@@ -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;