Skip to content

Commit 3b8c49a

Browse files
author
Douglas Mun
committed
Drop an unused unpack flagged by ruff
_prepare_bool_operand() only needs the pointer depth, not the base type. Keeps expr_pass.py at the same ruff error count as master.
1 parent 32cd773 commit 3b8c49a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎pythonbpf/expr/expr_pass.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ def _prepare_bool_operand(func, builder, val):
429429
zero-valued pointee rather than faulting -- exactly the fallback that
430430
`prev or 0` asks for.
431431
"""
432-
base_type, depth = get_base_type_and_depth(val.type)
432+
_, depth = get_base_type_and_depth(val.type)
433433
if depth > 0:
434434
deref = deref_to_depth(func, builder, val, depth)
435435
if deref is not None:

0 commit comments

Comments
 (0)