Skip to content

Commit

Permalink
cli: remove format() left over in f63e56f
Browse files Browse the repository at this point in the history
- The format() call was missing in the first place for `filename`.
- Other format() calls are obviously useless now that f-strings
  perform string interpolation.
  • Loading branch information
DimitriPapadopoulos committed Dec 31, 2023
1 parent 152ba20 commit 0ee3136
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yamllint/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ def standard_color(problem, filename):

@staticmethod
def github(problem, filename):
line = f'::{problem.level} file={format(filename)},' \
f'line={format(problem.line)},col={format(problem.column)}' \
f'::{format(problem.line)}:{format(problem.column)} '
line = f'::{problem.level} file={filename),' \
f'line={problem.line},col={problem.column}' \
f'::{problem.line}:{fproblem.column} '
if problem.rule:
line += f'[{problem.rule}] '
line += problem.desc
Expand Down

0 comments on commit 0ee3136

Please sign in to comment.