From c7250a0a3d796aaa15eb0076af6ea2379fb253e8 Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Sun, 23 Jan 2022 22:05:53 -0300 Subject: Fix warnings --- cmus-widget/cmus.lua | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'cmus-widget/cmus.lua') 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 -- cgit v1.2.3