Diff

util/sslconfig.lua @ 6671:2d5e2ed44c22

util.sslconfig: Rename variable to avoid name clash [luacheck]
author Matthew Wild <mwild1@gmail.com>
date Wed, 06 May 2015 19:43:28 +0100
parent 6292:751618071e89
child 6777:5de6b93d0190
line wrap: on
line diff
--- a/util/sslconfig.lua	Wed May 06 19:40:48 2015 +0100
+++ b/util/sslconfig.lua	Wed May 06 19:43:28 2015 +0100
@@ -6,11 +6,11 @@
 function handlers.options(a, k, b)
 	local o = a[k] or { };
 	if type(b) ~= "table" then b = { b } end
-	for k,v in pairs(b) do
-		if v == true or v == false then
-			o[k] = v;
+	for key, value in pairs(b) do
+		if value == true or value == false then
+			o[key] = value;
 		else
-			o[v] = true;
+			o[value] = true;
 		end
 	end
 	a[k] = o;