mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[chore] Remove uneeded doc_settings:close() (#5504)
When just reading settings, no need to close and write the file to disk.
This commit is contained in:
@@ -69,7 +69,6 @@ function PdfDocument:convertKoptToReflowableFontSize(font_size)
|
||||
if DocSettings:hasSidecarFile(self.file) then
|
||||
local doc_settings = DocSettings:open(self.file)
|
||||
size = doc_settings:readSetting("kopt_font_size")
|
||||
doc_settings:close()
|
||||
end
|
||||
if size then
|
||||
return size * default_font_size
|
||||
|
||||
Reference in New Issue
Block a user