# HG changeset patch # User Kim Alvefur # Date 1457716799 -3600 # Node ID baa1cb349427cc033ed09dae9f5e1333ba76b784 # Parent 86427261e3c4c347846ab15f5e8f0f4e21174428 mod_firewall: Pass results as arguments to format instead of shadowning variable [luacheck] diff -r 86427261e3c4 -r baa1cb349427 mod_firewall/conditions.lib.lua --- a/mod_firewall/conditions.lib.lua Fri Mar 11 18:18:35 2016 +0100 +++ b/mod_firewall/conditions.lib.lua Fri Mar 11 18:19:59 2016 +0100 @@ -95,8 +95,7 @@ function condition_handlers.INSPECT(path) if path:find("=") then - local path, match = path:match("(.-)=(.*)"); - return ("stanza:find(%q) == %q"):format(path, match); + return ("stanza:find(%q) == %q"):format(path:match("(.-)=(.*)")); end return ("stanza:find(%q)"):format(path); end