REF clean up code
This commit is contained in:
parent
ec699d29a4
commit
0af47fbe33
|
@ -146,10 +146,7 @@ end
|
||||||
|
|
||||||
return function(update_interval, config_path)
|
return function(update_interval, config_path)
|
||||||
local update_freq = 1 / update_interval
|
local update_freq = 1 / update_interval
|
||||||
local default_config = 'config.yml'
|
local config = yaml.load(i_o.read_file(config_path))
|
||||||
-- local r = i_o.read_file(config_path) or i_o.read_file(default_config)
|
|
||||||
local r = i_o.read_file(config_path) or i_o.read_file(default_config)
|
|
||||||
local config = yaml.load(r)
|
|
||||||
local cmods = config.modules
|
local cmods = config.modules
|
||||||
|
|
||||||
local main_state = {}
|
local main_state = {}
|
||||||
|
|
Loading…
Reference in New Issue