From c9e40304cbaf9b32659433c0f1c9c56b290b6ca0 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Sun, 9 Feb 2020 15:01:35 +0100 Subject: Remove useless if --- wee_slack.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wee_slack.py b/wee_slack.py index 01b3fad..e36f59f 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -433,10 +433,7 @@ class EventRouter(object): weechat's "callback_data" has a limited size and weechat will crash if you exceed this size. """ - data = self.context.get(identifier) - if data: - # dbg("retrieved context {} ".format(identifier)) - return data + return self.context.get(identifier) def delete_context(self, identifier): """ -- cgit