mirror of
https://github.com/adrienverge/yamllint.git
synced 2025-02-25 18:55:20 -06:00
cli: remove format() left over in f63e56f
- The format() call was missing in the first place for `filename`. - Other format() calls are obviously useless now that f-strings perform string interpolation.
This commit is contained in:
parent
3513ec175d
commit
cebc9c1fcc
@ -79,9 +79,9 @@ class Format:
|
||||
|
||||
@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
|
||||
|
Loading…
Reference in New Issue
Block a user