Comparison

plugins/mod_storage_sql.lua @ 10033:ca8333d1a7fe

mod_storage_sql: Ignore shadowed error variable [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 28 May 2019 00:56:30 +0200
parent 10032:de5ab807e438
child 10220:1e2b444acb72
comparison
equal deleted inserted replaced
10032:de5ab807e438 10033:ca8333d1a7fe
151 --- Archive store API 151 --- Archive store API
152 152
153 local archive_item_limit = module:get_option_number("storage_archive_item_limit"); 153 local archive_item_limit = module:get_option_number("storage_archive_item_limit");
154 local archive_item_count_cache = cache.new(module:get_option("storage_archive_item_limit_cache_size", 1000)); 154 local archive_item_count_cache = cache.new(module:get_option("storage_archive_item_limit_cache_size", 1000));
155 155
156 -- luacheck: ignore 512 431/user 431/store 156 -- luacheck: ignore 512 431/user 431/store 431/err
157 local map_store = {}; 157 local map_store = {};
158 map_store.__index = map_store; 158 map_store.__index = map_store;
159 map_store.remove = {}; 159 map_store.remove = {};
160 function map_store:get(username, key) 160 function map_store:get(username, key)
161 local ok, result = engine:transaction(function() 161 local ok, result = engine:transaction(function()