Skip to content

Commit d6733cf

Browse files
authored
Merge pull request #460 from streetturtle/fix-luacheck
Fix luacheck issues
2 parents ca4ba9d + b93080e commit d6733cf

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

calendar-widget/calendar.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ local function worker(user_args)
203203
border_color = calendar_themes[theme].border,
204204
widget = cal
205205
}
206-
206+
207207
local auto_hide_timer = gears.timer({
208208
timeout = user_args.timeout or 2,
209209
single_shot = true,
@@ -213,7 +213,7 @@ local function worker(user_args)
213213
})
214214

215215
popup:connect_signal("mouse::leave", function()
216-
if user_args.auto_hide then
216+
if user_args.auto_hide then
217217
auto_hide_timer:again()
218218
end
219219
end)

mpris-widget/init.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
-------------------------------------------------
88
local awful = require('awful')
99
local beautiful = require('beautiful')
10-
local watch = require('awful.widget.watch')
1110
local wibox = require('wibox')
1211
local gears = require('gears')
1312

@@ -44,7 +43,7 @@ function playerctl:watch(timeout, callback, widget)
4443

4544
self.watch_params = { timeout = timeout, callback = callback, widget = widget }
4645

47-
local cb = function(widget, stdout, _, _, _)
46+
local cb = function(cb_widget, stdout, _, _, _)
4847
local words = gears.string.split(stdout, ';')
4948

5049
local position, length, progress = tonumber(words[5]), tonumber(words[6])
@@ -68,10 +67,11 @@ function playerctl:watch(timeout, callback, widget)
6867
metadata.year = string.sub(words[8], 0, 4)
6968
end
7069

71-
callback(widget, metadata)
70+
callback(cb_widget, metadata)
7271
end
7372

74-
_, self.timer = awful.widget.watch(cmd, timeout, cb, widget)
73+
local _, timer = awful.widget.watch(cmd, timeout, cb, widget)
74+
self.timer = timer
7575
end
7676

7777
function playerctl:toggle() awful.spawn(self:cmd('play-pause'), false) end

0 commit comments

Comments
 (0)