Skip to content

Commit

Permalink
Remove eject on empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
ojv committed Jun 15, 2018
1 parent 6956190 commit 6bc6497
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,7 @@ if dbus then
local from_conky_iter = string.gmatch(conky_update, all_but_delim)
for i, update_func in ipairs(updater) do
local update = from_conky_iter()
if update == '' then
updater.eject(i, 'Conky returned empty string')
end

local success, err = pcall(update_func, update)
if not success then
if type(err) == 'string' then
Expand Down

0 comments on commit 6bc6497

Please sign in to comment.