diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2014-03-17 00:48:03 +0200 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2014-03-25 09:02:57 +0200 |
commit | d5bd615d0079a61c3bb498ce942a119b7d99884a (patch) | |
tree | 5ba60ce41457dda3eff1698249814ffc10c63f18 /aconf/model | |
parent | 3fda494d56bcdd1e35e1a24b37b44f1eb885346b (diff) | |
download | aconf-d5bd615d0079a61c3bb498ce942a119b7d99884a.tar.bz2 aconf-d5bd615d0079a61c3bb498ce942a119b7d99884a.tar.xz |
model: adjust indentation
Diffstat (limited to 'aconf/model')
-rw-r--r-- | aconf/model/model.lua | 22 |
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 |