fix typo
This commit is contained in:
parent
aadf53ee71
commit
c1ec091034
1 changed files with 2 additions and 2 deletions
|
@ -25,8 +25,8 @@ function M.read_file(path)
|
|||
end
|
||||
|
||||
function M.file_exist(path)
|
||||
if path ~= nil then
|
||||
return false
|
||||
if path == nil then
|
||||
return nil
|
||||
end
|
||||
local f = io.open(path, "r")
|
||||
if f ~= nil then
|
||||
|
|
Loading…
Reference in a new issue