Comparison

core/usermanager.lua @ 6663:d3023dd07cb6

portmanager, s2smanager, sessionmanager, stanza_router, storagemanager, usermanager, util.xml: Add luacheck annotations
author Matthew Wild <mwild1@gmail.com>
date Wed, 06 May 2015 19:20:07 +0100
parent 6628:8495734da243
child 6779:6236668da30a
comparison
equal deleted inserted replaced
6662:5ef319efedba 6663:d3023dd07cb6
27 27
28 function new_null_provider() 28 function new_null_provider()
29 local function dummy() return nil, "method not implemented"; end; 29 local function dummy() return nil, "method not implemented"; end;
30 local function dummy_get_sasl_handler() return sasl_new(nil, {}); end 30 local function dummy_get_sasl_handler() return sasl_new(nil, {}); end
31 return setmetatable({name = "null", get_sasl_handler = dummy_get_sasl_handler}, { 31 return setmetatable({name = "null", get_sasl_handler = dummy_get_sasl_handler}, {
32 __index = function(self, method) return dummy; end 32 __index = function(self, method) return dummy; end --luacheck: ignore 212
33 }); 33 });
34 end 34 end
35 35
36 local provider_mt = { __index = new_null_provider() }; 36 local provider_mt = { __index = new_null_provider() };
37 37