some luacheck fixes

This commit is contained in:
Mikayla Fischler
2023-05-05 13:55:14 -04:00
parent 7e33f22577
commit 8064b33a36
5 changed files with 11 additions and 9 deletions

View File

@@ -141,9 +141,7 @@ local function hazard_button(args)
end
-- handle mouse interaction
---@param event mouse_interaction mouse event
---@diagnostic disable-next-line: unused-local
function e.handle_mouse(event)
function e.handle_mouse(_)
if e.enabled then
-- change text color to indicate clicked
e.window.setTextColor(args.accent)

View File

@@ -48,9 +48,7 @@ local function push_button(args)
end
-- handle mouse interaction
---@param event mouse_interaction mouse event
---@diagnostic disable-next-line: unused-local
function e.handle_mouse(event)
function e.handle_mouse(_)
if e.enabled then
if args.active_fg_bg ~= nil then
-- show as pressed

View File

@@ -63,9 +63,7 @@ local function switch_button(args)
draw_state()
-- handle mouse interaction
---@param event mouse_interaction mouse event
---@diagnostic disable-next-line: unused-local
function e.handle_mouse(event)
function e.handle_mouse(_)
if e.enabled then
-- toggle state
e.value = not e.value