Skip to content

Commit f4d903d

Browse files
committed
Fix create_targets_and_rvals early returns
1 parent f9494c8 commit f4d903d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythonbpf/allocation_pass.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ def create_targets_and_rvals(stmt):
2727
if isinstance(stmt.targets[0], ast.Tuple):
2828
if not isinstance(stmt.value, ast.Tuple):
2929
logger.warning("Mismatched multi-target assignment, skipping allocation")
30-
return
30+
return [], []
3131
targets, rvals = stmt.targets[0].elts, stmt.value.elts
3232
if len(targets) != len(rvals):
3333
logger.warning("length of LHS != length of RHS, skipping allocation")
34-
return
34+
return [], []
3535
return targets, rvals
3636
return stmt.targets, [stmt.value]
3737

0 commit comments

Comments
 (0)