Skip to content

Commit

Permalink
Apply 'black'
Browse files Browse the repository at this point in the history
On my own this time, Jade.

Signed-off-by: Danila Fedorin <[email protected]>
  • Loading branch information
DanilaFe committed Jun 11, 2024
1 parent 8db6e0f commit 8922b47
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/chplcheck/src/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,10 @@ def RedundantParentheses(
if start_col > 1 and not start_line_str[start_col - 2].isspace():
new_text = " " + new_text
# Similarly, '(x)do', can't turn this into 'xdo', need an extra space.
if end_col < len(end_line_str) and not end_line_str[end_col - 1].isspace():
if (
end_col < len(end_line_str)
and not end_line_str[end_col - 1].isspace()
):
new_text += " "

fixit = Fixit.build(Edit.build(paren_loc, new_text))
Expand Down

0 comments on commit 8922b47

Please sign in to comment.