aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-09-24 18:31:16 +0200
committerKim Alvefur <zash@zash.se>2016-09-24 18:31:16 +0200
commitd56bd9dbdb87be04aafc1ea632e1a238cb62aee1 (patch)
treeb92c457b079af279b93a8483364953567a88e179
parentc331fe15947b0224d34854260d62d8059fcf34db (diff)
downloadprosody-d56bd9dbdb87be04aafc1ea632e1a238cb62aee1.tar.gz
prosody-d56bd9dbdb87be04aafc1ea632e1a238cb62aee1.zip
util.datamanager: Add annotations to ignore name clashes [luacheck]
-rw-r--r--util/datamanager.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua
index 2019d2e5..2884b942 100644
--- a/util/datamanager.lua
+++ b/util/datamanager.lua
@@ -321,7 +321,7 @@ local type_map = {
list = "list";
}
-local function users(host, store, typ)
+local function users(host, store, typ) -- luacheck: ignore 431/store
typ = type_map[typ or "keyval"];
local store_dir = format("%s/%s/%s", data_path, encode(host), store);
@@ -329,8 +329,8 @@ local function users(host, store, typ)
if not mode then
return function() log("debug", "%s", err or (store_dir .. " does not exist")) end
end
- local next, state = lfs.dir(store_dir);
- return function(state)
+ local next, state = lfs.dir(store_dir); -- luacheck: ignore 431/next 431/state
+ return function(state) -- luacheck: ignore 431/state
for node in next, state do
local file, ext = node:match("^(.*)%.([dalist]+)$");
if file and ext == typ then
@@ -348,8 +348,8 @@ local function stores(username, host, typ)
if not mode then
return function() log("debug", err or (store_dir .. " does not exist")) end
end
- local next, state = lfs.dir(store_dir);
- return function(state)
+ local next, state = lfs.dir(store_dir); -- luacheck: ignore 431/next 431/state
+ return function(state) -- luacheck: ignore 431/state
for node in next, state do
if not node:match"^%." then
if username == true then