From 66d2ef2c26c9ee1dcb49c31912dff49d127bc3de Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 4 Feb 2019 10:17:15 +0000 Subject: We don't need to enumerate hooks (github) --- modules/github/module.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/github') diff --git a/modules/github/module.py b/modules/github/module.py index 6e413617..b9269b1a 100644 --- a/modules/github/module.py +++ b/modules/github/module.py @@ -261,8 +261,7 @@ class Module(ModuleManager.BaseModule): targets = [] repo_hooked = False - for i, (server_id, channel_name, hooked_repos) in list( - enumerate(hooks))[::-1]: + for server_id, channel_name, hooked_repos) in hooks: found_hook = None if repo_username and repo_username in hooked_repos: found_hook = hooked_repos[repo_username] -- cgit v1.3.1-10-gc9f91