Skip to content

Removes helpful parenthesis #96

@maxfenton

Description

@maxfenton

input:
{% set style = ((style is defined) and style and (style in validStyles)) ? style : 'link' %}
output:

{% set style = style is defined and style and style in validStyles
  ? style
  : 'link'
%}

Could there be a flag (or is there) to not remove those?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions