Comparison

util/datamanager.lua @ 10531:810abf34919a

util.datamanager: Ignore unused 'errno' variable [luacheck]
author Kim Alvefur <zash@zash.se>
date Mon, 23 Dec 2019 21:01:55 +0100
parent 9993:02a41315d275
child 10666:dfc8257d8445
comparison
equal deleted inserted replaced
10530:67d56dacc79c 10531:810abf34919a
155 return ret; 155 return ret;
156 end 156 end
157 157
158 local function atomic_store(filename, data) 158 local function atomic_store(filename, data)
159 local scratch = filename.."~"; 159 local scratch = filename.."~";
160 local f, ok, msg, errno; 160 local f, ok, msg, errno; -- luacheck: ignore errno
161 -- TODO return util.error with code=errno?
161 162
162 f, msg, errno = io_open(scratch, "w"); 163 f, msg, errno = io_open(scratch, "w");
163 if not f then 164 if not f then
164 return nil, msg; 165 return nil, msg;
165 end 166 end