Software /
code /
prosody
Comparison
core/usermanager.lua @ 8555:4f0f5b49bb03
vairious: Add annotation when an empty environment is set [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 28 Feb 2018 20:06:26 +0100 |
parent | 8192:4354f556c5db |
child | 8717:9ddd0fbbe53a |
comparison
equal
deleted
inserted
replaced
8554:12a68e0d0ecf | 8555:4f0f5b49bb03 |
---|---|
22 local setmetatable = setmetatable; | 22 local setmetatable = setmetatable; |
23 | 23 |
24 local default_provider = "internal_plain"; | 24 local default_provider = "internal_plain"; |
25 | 25 |
26 local _ENV = nil; | 26 local _ENV = nil; |
27 -- luacheck: std none | |
27 | 28 |
28 local function new_null_provider() | 29 local function new_null_provider() |
29 local function dummy() return nil, "method not implemented"; end; | 30 local function dummy() return nil, "method not implemented"; end; |
30 local function dummy_get_sasl_handler() return sasl_new(nil, {}); end | 31 local function dummy_get_sasl_handler() return sasl_new(nil, {}); end |
31 return setmetatable({name = "null", get_sasl_handler = dummy_get_sasl_handler}, { | 32 return setmetatable({name = "null", get_sasl_handler = dummy_get_sasl_handler}, { |