gluon-alfred: some announce.lua cleanup

This commit is contained in:
Matthias Schiffer 2014-06-26 17:57:15 +02:00
parent 15d3d7fb09
commit 9d364a6fbc
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ function collect_dir(dir)
for _, entry in ipairs(fs.dir(dir)) do
if entry:sub(1, 1) ~= '.' then
err, val = pcall(collect_entry, dir .. '/' .. entry)
if err then
local ok, val = pcall(collect_entry, dir .. '/' .. entry)
if ok then
ret[entry] = val
else
io.stderr:write(val, '\n')