mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Get rid of luacheck warning
This commit is contained in:
@@ -81,7 +81,7 @@ end
|
||||
function filemanagerutil.setStatus(file, status)
|
||||
-- In case the book doesn't have a sidecar file, this'll create it
|
||||
local docinfo = DocSettings:open(file)
|
||||
local summary = nil
|
||||
local summary
|
||||
if docinfo.data.summary and docinfo.data.summary.status then
|
||||
-- Book already had the full BookStatus table in its sidecar, easy peasy!
|
||||
docinfo.data.summary.status = status
|
||||
|
||||
Reference in New Issue
Block a user