Skip to content

Commit

Permalink
Replace index lookup with first filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmoguy committed Jun 30, 2024
1 parent 50b63ec commit a06a28c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/flags
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% if not collector is mapping %}

Check failure on line 3 in templates/flags

View workflow job for this annotation

GitHub Actions / Jinja2 Lint

Bad Indentation, expected 5, got 1 (S3)
--collector.{{ collector }} \
{% else %}

Check failure on line 5 in templates/flags

View workflow job for this annotation

GitHub Actions / Jinja2 Lint

Bad Indentation, expected 5, got 1 (S3)
{% set name, options = (collector.items()|list)[0] %}
{% set name, options = collector.items() | list | first %}

Check failure on line 6 in templates/flags

View workflow job for this annotation

GitHub Actions / Jinja2 Lint

Bad Indentation, expected 9, got 1 (S3)
--collector.{{ name }} \
{% for k,v in options|dictsort %}

Check failure on line 8 in templates/flags

View workflow job for this annotation

GitHub Actions / Jinja2 Lint

The operator | needs to be enclosed by a single space on each side (S2)

Check failure on line 8 in templates/flags

View workflow job for this annotation

GitHub Actions / Jinja2 Lint

Bad Indentation, expected 9, got 1 (S3)
--collector.{{ name }}.{{ k }}={{ v | quote }} \
Expand Down

0 comments on commit a06a28c

Please sign in to comment.