Software /
code /
prosody
Comparison
plugins/mod_storage_xep0227.lua @ 8352:6ff50541d2a6
mod_storage_xep0227: Ignore unused 'self' argument [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 25 Oct 2017 21:59:33 +0200 |
parent | 8351:cc05b6366576 |
child | 11789:f3085620b6ff |
comparison
equal
deleted
inserted
replaced
8351:cc05b6366576 | 8352:6ff50541d2a6 |
---|---|
238 | 238 |
239 | 239 |
240 ----------------------------- | 240 ----------------------------- |
241 local driver = {}; | 241 local driver = {}; |
242 | 242 |
243 function driver:open(datastore, typ) | 243 function driver:open(datastore, typ) -- luacheck: ignore 212/self |
244 if typ and typ ~= "keyval" then return nil, "unsupported-store"; end | 244 if typ and typ ~= "keyval" then return nil, "unsupported-store"; end |
245 local handler = handlers[datastore]; | 245 local handler = handlers[datastore]; |
246 if not handler then return nil, "unsupported-datastore"; end | 246 if not handler then return nil, "unsupported-datastore"; end |
247 local instance = setmetatable({ host = module.host; datastore = datastore; }, { __index = handler }); | 247 local instance = setmetatable({ host = module.host; datastore = datastore; }, { __index = handler }); |
248 if instance.init then instance:init(); end | 248 if instance.init then instance:init(); end |