Skip to content

Commit

Permalink
add fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfhm committed Nov 22, 2023
1 parent f77fff1 commit 14bf16f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions loki/expression/mappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,8 @@ def map_variable_symbol(self, expr, *args, **kwargs):
if expr.scope is None:
if parent is expr.parent and not is_type_changed:

Check failure on line 598 in loki/expression/mappers.py

View workflow job for this annotation

GitHub Actions / code checks (3.11)

R1705: Unnecessary "elif" after "return", remove the leading "el" from "elif" (no-else-return)
return expr
elif not is_type_changed:
return expr.clone(parent=parent)
return expr.clone(parent=parent, type=new_type)

if parent is expr.parent:
Expand Down

0 comments on commit 14bf16f

Please sign in to comment.