mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
No need to initialize oldname = self:FullFileName() twice when renaming a file --- one initialization is enough.
(and, while at it, replaced references to a non-existent word "extention" with the proper English "extension")
This commit is contained in:
@@ -45,7 +45,7 @@ function CREReader:ZipContentExt(fname)
|
||||
if i == 4 then s = lines break else i = i + 1 end
|
||||
end
|
||||
end
|
||||
if s then -- return the extention
|
||||
if s then -- return the extension
|
||||
return string.lower(string.match(s, ".+%.([^.]+)") or "")
|
||||
else
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user