From b16b215cbbab20700763b30f7b0d533903c7cd0a Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Mon, 12 Dec 2022 00:47:34 +0100 Subject: [PATCH] ReaderHighlight: Appease newer versions of LuaCheck Good to know: it now defaults to assuming that function arguments prefixed with an underscore would be unused, which is... nice in theory ;). --- frontend/apps/reader/modules/readerhighlight.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/apps/reader/modules/readerhighlight.lua b/frontend/apps/reader/modules/readerhighlight.lua index cb8217354..69371e93e 100644 --- a/frontend/apps/reader/modules/readerhighlight.lua +++ b/frontend/apps/reader/modules/readerhighlight.lua @@ -1774,13 +1774,13 @@ function ReaderHighlight:writePdfAnnotation(action, page, item, content) return end logger.dbg("write to pdf document", action, item) - local function doAction(_action, _page, _item, _content) - if _action == "save" then - return self.ui.document:saveHighlight(_page, _item) - elseif _action == "delete" then - return self.ui.document:deleteHighlight(_page, _item) - elseif _action == "content" then - return self.ui.document:updateHighlightContents(_page, _item, _content) + local function doAction(action_, page_, item_, content_) + if action_ == "save" then + return self.ui.document:saveHighlight(page_, item_) + elseif action_ == "delete" then + return self.ui.document:deleteHighlight(page_, item_) + elseif action_ == "content" then + return self.ui.document:updateHighlightContents(page_, item_, content_) end end local can_write