Skip to content

Commit

Permalink
Merge pull request #2631 from crytic/dev-fix-analysis
Browse files Browse the repository at this point in the history
Fix are_variables_written analysis for named return variables
  • Loading branch information
smonicas authored Jan 17, 2025
2 parents cbb9a5c + 5ce67b7 commit e50dd34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slither/analyses/write/are_variables_written.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _visit(
lvalue = refs_lvalues

ret: List[Variable] = []
if not node.sons and node.type not in [NodeType.THROW, NodeType.RETURN]:
if not node.sons and node.type is not NodeType.THROW:
ret += [v for v in variables_to_write if v not in variables_written]

# Explore sons if
Expand Down

0 comments on commit e50dd34

Please sign in to comment.