summaryrefslogtreecommitdiffstats
path: root/aconf/model
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-03-17 00:48:03 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-03-25 09:02:57 +0200
commitd5bd615d0079a61c3bb498ce942a119b7d99884a (patch)
tree5ba60ce41457dda3eff1698249814ffc10c63f18 /aconf/model
parent3fda494d56bcdd1e35e1a24b37b44f1eb885346b (diff)
downloadaconf-d5bd615d0079a61c3bb498ce942a119b7d99884a.tar.bz2
aconf-d5bd615d0079a61c3bb498ce942a119b7d99884a.tar.xz
model: adjust indentation
Diffstat (limited to 'aconf/model')
-rw-r--r--aconf/model/model.lua22
1 files changed, 11 insertions, 11 deletions
diff --git a/aconf/model/model.lua b/aconf/model/model.lua
index 4185500..e1b61bf 100644
--- a/aconf/model/model.lua
+++ b/aconf/model/model.lua
@@ -157,17 +157,17 @@ function M.Model:init(context)
if options.create then return f and f:load(options) end
return function(var)
- if f then f:save(var)
- elseif var ~= nil then
- raise(
- pth.join(mt.path, v.name),
- 'Action does not accept an input argument'
- )
- end
- local res = v.func(self, f and f:load())
- if f then f:_save() end
- return res
- end
+ if f then f:save(var)
+ elseif var ~= nil then
+ raise(
+ pth.join(mt.path, v.name),
+ 'Action does not accept an input argument'
+ )
+ end
+ local res = v.func(self, f and f:load())
+ if f then f:_save() end
+ return res
+ end
end
return v