Skip to content

RM-37764: Fix FP on long-form-functions-have-a-terminating-return-statement#115

Merged
reniers-tiobe merged 2 commits intomainfrom
37764-fp-on-if-elsif-else
Jan 23, 2026
Merged

RM-37764: Fix FP on long-form-functions-have-a-terminating-return-statement#115
reniers-tiobe merged 2 commits intomainfrom
37764-fp-on-if-elsif-else

Conversation

@reniers-tiobe
Copy link
Contributor

@reniers-tiobe reniers-tiobe commented Jan 23, 2026

Fix FP on long-form-functions-have-a-terminating-return-statement for if-elseif-else construct.

The elseif node was not explicitly handled. See RM-37764 for the AST. The elseif node is not a block, but an elseif node.

Copy link
Contributor

@zon-tiobe zon-tiobe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Seems to cover all the extra cases now.

@reniers-tiobe reniers-tiobe merged commit 8e93170 into main Jan 23, 2026
2 of 3 checks passed
@reniers-tiobe reniers-tiobe deleted the 37764-fp-on-if-elsif-else branch January 23, 2026 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants