summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 32778399..c71b14fa 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -35,6 +35,10 @@ local function updateConfig()
}
},
})
+ if not configs or not configs[1] then
+ log.warn('No config?', util.dump(configs))
+ return
+ end
local updated = configs[1]
local other = {
@@ -42,11 +46,6 @@ local function updateConfig()
exclude = configs[3],
}
- if not updated then
- log.warn('No config?', util.dump(configs))
- return
- end
-
local oldConfig = util.deepCopy(config.config)
local oldOther = util.deepCopy(config.other)
config.setConfig(updated, other)