fix indentation
This commit is contained in:
parent
b6dff07a12
commit
25765c4ace
1 changed files with 8 additions and 8 deletions
16
eatit.lua
16
eatit.lua
|
|
@ -27,14 +27,14 @@ local function tablelength(T)
|
|||
end
|
||||
|
||||
local function fileexists(name)
|
||||
local ok, err, code = os.rename(name, name)
|
||||
if not ok then
|
||||
if code == 13 then
|
||||
-- Permission denied, but it exists
|
||||
return true
|
||||
end
|
||||
end
|
||||
return ok, err
|
||||
local ok, err, code = os.rename(name, name)
|
||||
if not ok then
|
||||
if code == 13 then
|
||||
-- Permission denied, but it exists
|
||||
return true
|
||||
end
|
||||
end
|
||||
return ok, err
|
||||
end
|
||||
|
||||
local function testforslash(str)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue