Comparison

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
parent 2561:3da0e3c917cc
child 2573:24dbad147aef
comparison
equal deleted inserted replaced
2561:3da0e3c917cc 2562:78efd064aef3
267 end 267 end
268 if dep_info.global_code then 268 if dep_info.global_code then
269 if dep_param ~= "" then 269 if dep_param ~= "" then
270 local global_code, deps = dep_info.global_code(dep_param); 270 local global_code, deps = dep_info.global_code(dep_param);
271 if deps then 271 if deps then
272 for _, dep in ipairs(deps) do 272 for _, dep_dep in ipairs(deps) do
273 include_dep(dep, code); 273 include_dep(dep_dep, code);
274 end 274 end
275 end 275 end
276 table.insert(code.global_header, global_code); 276 table.insert(code.global_header, global_code);
277 else 277 else
278 table.insert(code.global_header, dep_info.global_code); 278 table.insert(code.global_header, dep_info.global_code);
280 end 280 end
281 if dep_info.local_code then 281 if dep_info.local_code then
282 if dep_param ~= "" then 282 if dep_param ~= "" then
283 local local_code, deps = dep_info.local_code(dep_param); 283 local local_code, deps = dep_info.local_code(dep_param);
284 if deps then 284 if deps then
285 for _, dep in ipairs(deps) do 285 for _, dep_dep in ipairs(deps) do
286 include_dep(dep, code); 286 include_dep(dep_dep, code);
287 end 287 end
288 end 288 end
289 table.insert(code, "\n\t\t-- "..dep.."\n\t\t"..local_code.."\n"); 289 table.insert(code, "\n\t\t-- "..dep.."\n\t\t"..local_code.."\n");
290 else 290 else
291 table.insert(code, "\n\t\t-- "..dep.."\n\t\t"..dep_info.local_code.."\n"); 291 table.insert(code, "\n\t\t-- "..dep.."\n\t\t"..dep_info.local_code.."\n");