aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/datamanager.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua
index 4a371d2c..b7c514ad 100644
--- a/util/datamanager.lua
+++ b/util/datamanager.lua
@@ -214,9 +214,9 @@ local function append(username, host, datastore, ext, data)
local f, msg = io_open(filename, "r+");
if not f then
f, msg = io_open(filename, "w");
- end
- if not f then
- return nil, msg;
+ if not f then
+ return nil, msg;
+ end
end
local pos = f:seek("end");
local ok, msg = fallocate(f, pos, #data);