summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAugusto Gunsch <augustogunsch@tutanota.com>2022-01-23 22:05:53 -0300
committerAugusto Gunsch <augustogunsch@tutanota.com>2022-01-23 22:05:53 -0300
commitc7250a0a3d796aaa15eb0076af6ea2379fb253e8 (patch)
treeb0ee1a9e8836565241c415a9a90262006269474d
parent69aac8cae63e59ad130ad4b14f25fcd4e45fef3c (diff)
Fix warnings
-rw-r--r--cmus-widget/cmus.lua13
1 files changed, 3 insertions, 10 deletions
diff --git a/cmus-widget/cmus.lua b/cmus-widget/cmus.lua
index 2cb692d..1936827 100644
--- a/cmus-widget/cmus.lua
+++ b/cmus-widget/cmus.lua
@@ -14,13 +14,6 @@ local naughty = require("naughty")
local cmus_widget = {}
-local function show_warning(message)
- naughty.notify{
- preset = naughty.config.presets.critical,
- title = "Cmus Widget",
- text = message}
-end
-
local function worker(user_args)
local args = user_args or {}
@@ -54,7 +47,7 @@ local function worker(user_args)
end
}
- function update_widget(widget, stdout, _, _, code)
+ local function update_widget(widget, stdout, _, _, code)
if code == 0 then
local cmus_info = {}
@@ -64,12 +57,12 @@ local function worker(user_args)
if key and val then
cmus_info[key] = val
else
- local key, val = string.match(s, "^set (%a+) (.+)$")
+ key, val = string.match(s, "^set (%a+) (.+)$")
if key and val then
cmus_info[key] = val
else
- local key, val = string.match(s, "^(%a+) (.+)$")
+ key, val = string.match(s, "^(%a+) (.+)$")
if key and val then
cmus_info[key] = val
end