mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_admin_shell: Use new serialize preset to simplify default config
Two pairs replaced by one. Blame lua-format for the line diff delta.
This commit is contained in:
parent
f3414a43d8
commit
46781dc892
1 changed files with 5 additions and 2 deletions
|
@ -370,8 +370,11 @@ end
|
|||
-- Anything in def_env will be accessible within the session as a global variable
|
||||
|
||||
--luacheck: ignore 212/self
|
||||
local serialize_defaults = module:get_option("console_prettyprint_settings",
|
||||
{ fatal = false; unquoted = true; maxdepth = 2; table_iterator = "pairs" })
|
||||
local serialize_defaults = module:get_option("console_prettyprint_settings", {
|
||||
preset = "pretty";
|
||||
maxdepth = 2;
|
||||
table_iterator = "pairs";
|
||||
})
|
||||
|
||||
def_env.output = {};
|
||||
function def_env.output:configure(opts)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue