aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-12-23 21:01:55 +0100
committerKim Alvefur <zash@zash.se>2019-12-23 21:01:55 +0100
commit0bbfb60aaead427610dc593d646c906387af3468 (patch)
tree809debf66647437424defe8b5b684c94cd287441 /util
parent3f89e9373b5978f18bed6b62bc1dceb3887364d8 (diff)
downloadprosody-0bbfb60aaead427610dc593d646c906387af3468.tar.gz
prosody-0bbfb60aaead427610dc593d646c906387af3468.zip
util.datamanager: Ignore unused 'errno' variable [luacheck]
Diffstat (limited to 'util')
-rw-r--r--util/datamanager.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua
index b52c77fa..1c578fee 100644
--- a/util/datamanager.lua
+++ b/util/datamanager.lua
@@ -157,7 +157,8 @@ end
local function atomic_store(filename, data)
local scratch = filename.."~";
- local f, ok, msg, errno;
+ local f, ok, msg, errno; -- luacheck: ignore errno
+ -- TODO return util.error with code=errno?
f, msg, errno = io_open(scratch, "w");
if not f then