aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-02-09 15:01:35 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2020-02-23 18:47:05 +0100
commitc9e40304cbaf9b32659433c0f1c9c56b290b6ca0 (patch)
tree998cb388376e61407e80a5a2368991acae50a577
parent1177240dd248daf3592d808cbb14ab2c906089c9 (diff)
downloadwee-slack-c9e40304cbaf9b32659433c0f1c9c56b290b6ca0.tar.gz
Remove useless if
-rw-r--r--wee_slack.py5
1 files changed, 1 insertions, 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):
"""