提交 756c1c69 编写于 作者: X Xu Jingxin

Keep the return original return value

上级 3e5016b2
......@@ -10,7 +10,7 @@ def apply_middleware(func_name: str):
for func in buffer.middlewares:
done, *args = func(buffer, func_name, *args)
if done:
return args
return args[0] if len(args) == 1 else args
return f(buffer, *args)
return _apply_middleware
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册