From e1c45dc23f7a902b0eab3504e2970171fa6e3edf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 20 Aug 2022 16:20:30 +0530 Subject: [PATCH] ... --- kitty/boss.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kitty/boss.py b/kitty/boss.py index b8730a9fa..5db05e655 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -592,9 +592,8 @@ class Boss: if isinstance(payload, types.GeneratorType): for x in payload: c.response_from_kitty(self, active_window, PayloadGetter(c, x if isinstance(x, dict) else {})) - else: - return c.response_from_kitty(self, active_window, PayloadGetter(c, payload if isinstance(payload, dict) else {})) - return None + return None + return c.response_from_kitty(self, active_window, PayloadGetter(c, payload if isinstance(payload, dict) else {})) def peer_message_received(self, msg_bytes: bytes, peer_id: int) -> Union[bytes, bool, None]: cmd_prefix = b'\x1bP@kitty-cmd'