# HG changeset patch # User Kim Alvefur # Date 1530828887 -7200 # Node ID e59207c909c08cdabbb755c9cab0717507c82025 # Parent 75c3b1bd9d7b3019ff1373415626e1444f77e073 mod_http: Rename loop variable to avoid name clash [luacheck] diff -r 75c3b1bd9d7b -r e59207c909c0 plugins/mod_http.lua --- a/plugins/mod_http.lua Fri Jul 06 00:13:45 2018 +0200 +++ b/plugins/mod_http.lua Fri Jul 06 00:14:47 2018 +0200 @@ -137,8 +137,8 @@ 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