Skip to content

Commit 9ec01d0

Browse files
committed
cleaner code
1 parent 81c218d commit 9ec01d0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

stream/reactions.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,8 @@ def add_child(self, kind, parent_id, user_id, data=None, target_feeds=None):
4949
def filter(self, **params):
5050
lookup_field = ""
5151
lookup_value = ""
52-
kind = None
5352

54-
if "kind" in params:
55-
kind = params.pop("kind")
53+
kind = params.pop("kind", None)
5654

5755
if "reaction_id" in params:
5856
lookup_field = "reaction_id"

0 commit comments

Comments
 (0)