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 ;).
This commit is contained in:
NiLuJe
2022-12-12 00:47:34 +01:00
parent 649af0be59
commit b16b215cbb

View File

@@ -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