summaryrefslogtreecommitdiffstats
path: root/aconf/model
diff options
context:
space:
mode:
Diffstat (limited to 'aconf/model')
-rw-r--r--aconf/model/root.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/aconf/model/root.lua b/aconf/model/root.lua
index a407b07..949005e 100644
--- a/aconf/model/root.lua
+++ b/aconf/model/root.lua
@@ -83,11 +83,7 @@ function M.register(name, field, params)
local mode = record.be_mode
if mode then
- if object.isinstance(
- mode, require('aconf.path.address.special').SpecialMode
- ) then
- mode = {['.']=mode}
- end
+ if type(mode) == 'string' then mode = {['.']=mode} end
for addr, m in pairs(mode) do
set('mode', m, addr == '.' and top or top(addr, true))
end