Skip to content

Commit

Permalink
inverted if/else logic - think positive
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Farnham committed Oct 23, 2024
1 parent 93f8b14 commit 312c300
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Device/templates/designToDeviceBaseHeader.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@

{% macro get_parent_struct(class_name) %}
{% set parent_class_name = designInspector.get_parent(class_name) %}
{%- if parent_class_name == None or not designInspector.class_has_legit_device_parent(parent_class_name) -%}
struct{/*No Device Logic for parent {{parent_class_name}} of {{class_name}}*/}
{%- else -%}
{%- if parent_class_name != None and designInspector.class_has_legit_device_parent(parent_class_name) -%}
D{{parent}}
{%- else -%}
struct{/*No Device Logic for parent {{parent_class_name}} of {{class_name}}*/}
{%- endif -%}
{% endmacro %}

Expand Down

0 comments on commit 312c300

Please sign in to comment.