[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:
poire-z
2019-10-18 17:23:15 +02:00
committed by Frans de Jonge
parent 17244cca2f
commit 7caa21a3fb
2 changed files with 0 additions and 4 deletions

View File

@@ -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