From 1d0cfd3aeded65ded10b7ab3163488c3dc1d4383 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Wed, 11 Nov 2009 14:32:37 +0100 Subject: Cleanup widgets that use pathtotable helper --- bat.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'bat.lua') diff --git a/bat.lua b/bat.lua index 6241072..e55695f 100644 --- a/bat.lua +++ b/bat.lua @@ -21,11 +21,7 @@ module("vicious.bat") -- {{{ Battery widget type local function worker(format, batid) - local battery = setmetatable( - { _path = "/sys/class/power_supply/" .. batid }, - helpers.pathtotable - ) - + local battery = helpers.pathtotable("/sys/class/power_supply/" .. batid) local battery_state = { ["Full\n"] = "↯", ["Unknown\n"] = "⌁", -- cgit v1.2.3