aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--eatit.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/eatit.lua b/eatit.lua
index 9d1805c..8bc1545 100644
--- a/eatit.lua
+++ b/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)