Skip to content

Commit 0f3cc43

Browse files
committed
Fix return for unknown map types
1 parent d943b78 commit 0f3cc43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pythonbpf/maps/maps_pass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,6 @@ def process_bpf_map(func_node, module):
258258
else:
259259
logger.warning(f"Unknown map type "
260260
f"{rval.func.id}, defaulting to HashMap")
261-
process_hash_map(map_name, rval, module)
261+
return process_hash_map(map_name, rval, module)
262262
else:
263263
raise ValueError("Function under @map must return a map")

0 commit comments

Comments
 (0)