Make luacheck >= 0.26 happy (#9174)

Re: https://github.com/koreader/koreader-base/pull/1487
This commit is contained in:
NiLuJe
2022-06-11 19:06:06 +02:00
committed by GitHub
parent d644b1a851
commit dcb11c2542
11 changed files with 73 additions and 73 deletions

View File

@@ -1095,9 +1095,9 @@ end
Get link from position in screen page.
]]--
function KoptInterface:getLinkFromPosition(doc, pageno, pos)
local function _inside_box(_pos, box)
if _pos then
local x, y = _pos.x, _pos.y
local function _inside_box(coords, box)
if coords then
local x, y = coords.x, coords.y
if box.x <= x and box.y <= y
and box.x + box.w >= x
and box.y + box.h >= y then