Skip to content

Commit

Permalink
Merge pull request sopel-irc#1193 from MasterOdin/patch-1
Browse files Browse the repository at this point in the history
Remove duplicate item in triggerable tuple check
  • Loading branch information
embolalia authored Dec 3, 2017
2 parents eaef6d4 + ae02ca6 commit d9cfb41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sopel/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ def load_module(name, path, type_):


def is_triggerable(obj):
return any(hasattr(obj, attr) for attr in ('rule', 'rule', 'intent',
'commands'))
return any(hasattr(obj, attr) for attr in ('rule', 'intent', 'commands'))


def clean_module(module, config):
Expand Down

0 comments on commit d9cfb41

Please sign in to comment.