diff options
author | Matthew Wild <mwild1@gmail.com> | 2015-05-06 19:43:28 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2015-05-06 19:43:28 +0100 |
commit | 6f2f3dde36a37f8c8890ad4a9b9adc1c98b6469e (patch) | |
tree | af0628e48cdf0b6c038588969228fdee9e39e446 /util | |
parent | 72be71031ac21fa60622b34cb3219fbaefcfdd99 (diff) | |
download | prosody-6f2f3dde36a37f8c8890ad4a9b9adc1c98b6469e.tar.gz prosody-6f2f3dde36a37f8c8890ad4a9b9adc1c98b6469e.zip |
util.sslconfig: Rename variable to avoid name clash [luacheck]
Diffstat (limited to 'util')
-rw-r--r-- | util/sslconfig.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/sslconfig.lua b/util/sslconfig.lua index 98e61341..42ce37d7 100644 --- a/util/sslconfig.lua +++ b/util/sslconfig.lua @@ -6,11 +6,11 @@ local id = function (v) return v end 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; |