mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Cleanup various varargs shenanigans (#9624)
* Iterate over varargs directly via select if possible * Use table.pack otherwise (https://github.com/koreader/koreader-base/pull/1535). * This allows us to simplify a few Logger calls, as logger now handles nil values.
This commit is contained in:
@@ -182,7 +182,8 @@ end
|
||||
function ReaderThumbnail:resetCachedPagesForBookmarks(...)
|
||||
-- Multiple bookmarks may be provided
|
||||
local start_page, end_page
|
||||
for _, bm in ipairs({...}) do
|
||||
for i = 1, select("#", ...) do
|
||||
local bm = select(i, ...)
|
||||
if self.ui.rolling then
|
||||
-- Look at all properties that may be xpointers
|
||||
for _, k in ipairs({"page", "pos0", "pos1"}) do
|
||||
|
||||
Reference in New Issue
Block a user