We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc7a127 commit ceaac78Copy full SHA for ceaac78
pythonbpf/functions/functions_pass.py
@@ -410,7 +410,7 @@ def process_stmt(
410
raise ValueError("Failed to evaluate return expression")
411
if val[1] != ret_type:
412
raise ValueError(
413
- "Return type mismatch: expected " f"{ret_type}, got {val[1]}"
+ f"Return type mismatch: expected {ret_type}, got {val[1]}"
414
)
415
builder.ret(val[0])
416
did_return = True
@@ -420,8 +420,7 @@ def process_stmt(
420
val = builder.load(var)
421
if val.type != ret_type:
422
423
- "Return type mismatch: expected"
424
- f"{ret_type}, got {val.type}"
+ f"Return type mismatch: expected {ret_type}, got {val.type}"
425
426
builder.ret(val)
427
0 commit comments