Skip to content

Commit

Permalink
Remove if - else
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Jun 24, 2024
1 parent 2ede21f commit 9aba9ce
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions python/templates/macros/implementations.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9aba9ce

Please sign in to comment.