Skip to content

Commit 43b41a4

Browse files
author
Matthias Güdemann
committed
Simplify return
1 parent f6586ed commit 43b41a4

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

jbmc/src/java_bytecode/select_pointer_type.cpp

+1-9
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,7 @@ pointer_typet select_pointer_typet::specialize_generics(
8989
{
9090
optionalt<pointer_typet> result = get_recursively_instantiated_type(
9191
parameter_name, generic_parameter_specialization_map);
92-
if(result.has_value())
93-
{
94-
return result.value();
95-
}
96-
else
97-
{
98-
// return pointer type of generic parameter bound
99-
return pointer_type;
100-
}
92+
return result.has_value() ? result.value() : pointer_type;
10193
}
10294

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

0 commit comments

Comments
 (0)