Mercurial > prosody-modules
comparison mod_storage_memory/mod_storage_memory.lua @ 2661:1d734acabd46
mod_storage_memory: Ignore unused 'self' [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 30 Mar 2017 23:47:03 +0200 |
parents | 796ace2c8f9d |
children | 2e1a4740adee |
comparison
equal
deleted
inserted
replaced
2660:796ace2c8f9d | 2661:1d734acabd46 |
---|---|
140 archive = archive_store; | 140 archive = archive_store; |
141 } | 141 } |
142 | 142 |
143 local driver = {}; | 143 local driver = {}; |
144 | 144 |
145 function driver:open(store, typ) | 145 function driver:open(store, typ) -- luacheck: ignore 212/self |
146 local store_mt = stores[typ or "keyval"]; | 146 local store_mt = stores[typ or "keyval"]; |
147 if store_mt then | 147 if store_mt then |
148 return setmetatable({ store = memory[store] }, store_mt); | 148 return setmetatable({ store = memory[store] }, store_mt); |
149 end | 149 end |
150 return nil, "unsupported-store"; | 150 return nil, "unsupported-store"; |