Skip to content

Commit

Permalink
More pythonic if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
davidolrik committed Feb 9, 2021
1 parent 28021a6 commit 6ee13b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machine/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def _register_plugin_actions(self, plugin_class, metadata, cls_instance, fn_name
if action == 'process':
event_type = config['event_type']
RTMClient.on(event=event_type, callback=callable_with_sanitized_event(fn))
if action == 'respond_to' or action == 'listen_to':
if action in ['respond_to', 'listen_to']:
for regex in config['regex']:
event_handler = {
'class': cls_instance,
Expand Down

0 comments on commit 6ee13b5

Please # to comment.