Comparison

core/storagemanager.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 7999:980606856882
child 8654:425de10efde4
comparison
equal deleted inserted replaced
8554:12a68e0d0ecf 8555:4f0f5b49bb03
10 local log = require "util.logger".init("storagemanager"); 10 local log = require "util.logger".init("storagemanager");
11 11
12 local prosody = prosody; 12 local prosody = prosody;
13 13
14 local _ENV = nil; 14 local _ENV = nil;
15 -- luacheck: std none
15 16
16 local olddm = {}; -- maintain old datamanager, for backwards compatibility 17 local olddm = {}; -- maintain old datamanager, for backwards compatibility
17 for k,v in pairs(datamanager) do olddm[k] = v; end 18 for k,v in pairs(datamanager) do olddm[k] = v; end
18 19
19 local null_storage_method = function () return false, "no data storage active"; end 20 local null_storage_method = function () return false, "no data storage active"; end