Skip to content

Commit 4fc299f

Browse files
authored
Merge pull request #83 from cclauss/patch-2
Simplify check for None in _slackrequest.py
2 parents a232459 + 4214da4 commit 4fc299f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

slackclient/_slackrequest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ class SlackRequest(object):
55

66
@staticmethod
77
def do(token, request="?", post_data=None, domain="slack.com"):
8-
if post_data is None:
9-
post_data = {}
10-
8+
post_data = post_data or {}
119
return requests.post(
1210
'https://{0}/api/{1}'.format(domain, request),
1311
data=dict(post_data, token=token),

0 commit comments

Comments
 (0)