Skip to content

Commit

Permalink
remove duplicated file name in tidy comment
Browse files Browse the repository at this point in the history
resolves #63

Technically, this fixes an undesired behavior introduced in #49.
  • Loading branch information
2bndy5 committed Feb 10, 2024
1 parent 788596b commit 33332a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cpp_linter/rest_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,8 @@ def make_comment(
for file_obj, concern in zip(files, tidy_advice):
for note in concern.notes:
if file_obj.name == note.filename:
tidy_comment += f"- {file_obj.name}\n\n"
tidy_comment += (
" <strong>{filename}:{line}:{cols}:</strong> ".format(
"- <strong>{filename}:{line}:{cols}:</strong> ".format(
filename=file_obj.name,
line=note.line,
cols=note.cols,
Expand Down

0 comments on commit 33332a9

Please sign in to comment.