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 authored and adrienverge committed Jan 4, 2024
1 parent 3513ec1 commit cebc9c1
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}:{problem.column} '
if problem.rule:
line += f'[{problem.rule}] '
line += problem.desc
Expand Down

0 comments on commit cebc9c1

Please sign in to comment.