From 390f2712d0abb05b367921a101cc7661de2e93b4 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 24 Jun 2024 11:33:19 +0200 Subject: [PATCH] Remove if - else --- python/templates/macros/implementations.jinja2 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 {