Commit be0c5c3f authored by balaskoa's avatar balaskoa
Browse files

small code simplification


Signed-off-by: default avatarbalaskoa <jeno.balasko@ericsson.com>
parent a45c5fe9
......@@ -106,14 +106,12 @@ public final class Return_Statement extends Statement {
}
break;
case A_FUNCTION_RVAL:
final Type returnType = ((Def_Function) definition).getType(timestamp);
if (template == null) {
location.reportSemanticError(MessageFormat.format(MISSINGVALUE, ((Def_Function) definition).getType(timestamp)
.getTypename()));
location.reportSemanticError(MessageFormat.format(MISSINGVALUE, returnType.getTypename()));
break;
}
final Type returnType = ((Def_Function) definition).getType(timestamp);
switch (template.getTemplatetype()) {
case VALUE_LIST:
if (((ValueList_Template) template).getNofTemplates() == 1) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment