diff --git a/python/templates/macros/implementations.jinja2 b/python/templates/macros/implementations.jinja2 index fddd1be3e..c1c8221bd 100644 --- a/python/templates/macros/implementations.jinja2 +++ b/python/templates/macros/implementations.jinja2 @@ -180,10 +180,7 @@ podio::RelationRange<{{ relation.full_type }}> {{ class_type }}::{{ relation.get {% macro common_object_funcs(class, prefix='') %} {% set full_type = prefix + class.bare_type %} bool {{ full_type }}::isAvailable() const { - if (m_obj) { - return true; - } - return false; + return m_obj; } const podio::ObjectID {{ full_type }}::getObjectID() const {