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

@@ -171,10 +171,10 @@ function ReaderSearch:onShowSearchDialog(text, direction, regex, case_insensitiv
end
return false
end
local do_search = function(search_func, _text, param)
local do_search = function(search_func, search_term, param)
return function()
local no_results = true -- for notification
local res = search_func(self, _text, param, regex, case_insensitive)
local res = search_func(self, search_term, param, regex, case_insensitive)
if res then
if self.ui.document.info.has_pages then
no_results = false