Comparison

core/modulemanager.lua @ 10530:67d56dacc79c

core.modulemanager: Silence warning about unused err variable [luacheck]
author Kim Alvefur <zash@zash.se>
date Fri, 20 Dec 2019 22:38:45 +0100
parent 10434:8f709577fe8e
child 11145:be73df6765b9
comparison
equal deleted inserted replaced
10529:854586ac7c96 10530:67d56dacc79c
244 return nil, err; 244 return nil, err;
245 end 245 end
246 246
247 local saved; 247 local saved;
248 if module_has_method(mod, "save") then 248 if module_has_method(mod, "save") then
249 local ok, ret, err = call_module_method(mod, "save"); 249 -- FIXME What goes in 'err' here?
250 local ok, ret, err = call_module_method(mod, "save"); -- luacheck: ignore 211/err
250 if ok then 251 if ok then
251 saved = ret; 252 saved = ret;
252 else 253 else
253 log("warn", "Error saving module '%s:%s' state: %s", host, name, ret); 254 log("warn", "Error saving module '%s:%s' state: %s", host, name, ret);
254 if not config.get(host, "force_module_reload") then 255 if not config.get(host, "force_module_reload") then