diff options
author | Kim Alvefur <zash@zash.se> | 2018-07-06 00:14:47 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-07-06 00:14:47 +0200 |
commit | d0f783842e14df2e4ad33740bb3fff358a1618c6 (patch) | |
tree | dbfe6e3ff9ce7683f8daee0bfb0c70979316fc1f | |
parent | c27c3940c7bb9992af68d799201d717d8dab74a5 (diff) | |
download | prosody-d0f783842e14df2e4ad33740bb3fff358a1618c6.tar.gz prosody-d0f783842e14df2e4ad33740bb3fff358a1618c6.zip |
mod_http: Rename loop variable to avoid name clash [luacheck]
-rw-r--r-- | plugins/mod_http.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua index 99435e4e..9bb6a817 100644 --- a/plugins/mod_http.lua +++ b/plugins/mod_http.lua @@ -137,8 +137,8 @@ function module.add_host(module) local function http_app_removed(event) local app_handlers = apps[event.item.name]; apps[event.item.name] = nil; - for event, handler in pairs(app_handlers) do - module:unhook_object_event(server, event, handler); + for event_name, handler in pairs(app_handlers) do + module:unhook_object_event(server, event_name, handler); end end |