Changeset

10531:810abf34919a

util.datamanager: Ignore unused 'errno' variable [luacheck]
author Kim Alvefur <zash@zash.se>
date Mon, 23 Dec 2019 21:01:55 +0100
parents 10530:67d56dacc79c
children 10532:19ec384eb782
files util/datamanager.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/datamanager.lua	Fri Dec 20 22:38:45 2019 +0100
+++ b/util/datamanager.lua	Mon Dec 23 21:01:55 2019 +0100
@@ -157,7 +157,8 @@
 
 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