Skip to content

Commit

Permalink
flip logic
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
  • Loading branch information
jabraham17 committed Sep 26, 2024
1 parent 53929c7 commit c6c2754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/chplcheck/src/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ def unwrap_intermediate_block(node: AstNode) -> Optional[AstNode]:
# only loops and NamedDecls can be anchors for indentation
anchor = (
parent_for_indentation
if not isinstance(parent_for_indentation, (Loop, NamedDecl))
if isinstance(parent_for_indentation, (Loop, NamedDecl))
else None
)
yield AdvancedRuleResult(child, anchor=anchor)
Expand Down

0 comments on commit c6c2754

Please sign in to comment.