diff mod_firewall/mod_firewall.lua @ 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 24dbad147aef
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");