Skip to content

Commit

Permalink
Simplify return
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Güdemann committed Jun 6, 2018
1 parent f6586ed commit 43b41a4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions jbmc/src/java_bytecode/select_pointer_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,7 @@ pointer_typet select_pointer_typet::specialize_generics(
{
optionalt<pointer_typet> result = get_recursively_instantiated_type(
parameter_name, generic_parameter_specialization_map);
if(result.has_value())
{
return result.value();
}
else
{
// return pointer type of generic parameter bound
return pointer_type;
}
return result.has_value() ? result.value() : pointer_type;
}

// generic parameters can be adopted from outer classes or superclasses so
Expand Down

0 comments on commit 43b41a4

Please sign in to comment.