changeset 2562:78efd064aef3

mod_firewall: Rename variables to avoid shadowing #luacheck
author Matthew Wild <mwild1@gmail.com>
date Fri, 24 Feb 2017 09:49:30 +0000
parents 3da0e3c917cc
children 2f1e25706f81
files mod_firewall/mod_firewall.lua
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua	Fri Feb 24 09:49:09 2017 +0000
+++ b/mod_firewall/mod_firewall.lua	Fri Feb 24 09:49:30 2017 +0000
@@ -269,8 +269,8 @@
 		if dep_param ~= "" then
 			local global_code, deps = dep_info.global_code(dep_param);
 			if deps then
-				for _, dep in ipairs(deps) do
-					include_dep(dep, code);
+				for _, dep_dep in ipairs(deps) do
+					include_dep(dep_dep, code);
 				end
 			end
 			table.insert(code.global_header, global_code);
@@ -282,8 +282,8 @@
 		if dep_param ~= "" then
 			local local_code, deps = dep_info.local_code(dep_param);
 			if deps then
-				for _, dep in ipairs(deps) do
-					include_dep(dep, code);
+				for _, dep_dep in ipairs(deps) do
+					include_dep(dep_dep, code);
 				end
 			end
 			table.insert(code, "\n\t\t-- "..dep.."\n\t\t"..local_code.."\n");