Skip to content

Commit 4214da4

Browse files
author
cclauss
committed
Update _slackrequest.py
1 parent e1a4a3c commit 4214da4

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)