Skip to content

Commit

Permalink
Fix format via 'black'
Browse files Browse the repository at this point in the history
This time, Jade, it did get caught by the CI check.

Signed-off-by: Danila Fedorin <[email protected]>
  • Loading branch information
DanilaFe committed Jun 10, 2024
1 parent e6bf9b0 commit 8bb78ca
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tools/chplcheck/src/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def might_incorrectly_report_location(node: AstNode) -> bool:
indentation should leave these variables alone.
"""


# some NamedDecl nodes currently use the name as the location, which
# does not indicate their actual indentation.
if isinstance(node, (VarLikeDecl, TupleDecl, ForwardingDecl)):
Expand All @@ -54,14 +53,12 @@ def might_incorrectly_report_location(node: AstNode) -> bool:
# keyword.
#
# https://github.com/chapel-lang/chapel/issues/24818
elif (
isinstance(node, (Function, Use, Import))
and node.visibility() != ""
):
elif isinstance(node, (Function, Use, Import)) and node.visibility() != "":
return True

return False


def fixit_remove_unused_node(
node: AstNode,
lines: Optional[List[str]] = None,
Expand Down

0 comments on commit 8bb78ca

Please sign in to comment.