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.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 564c3ad9..ead0ca46 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -29,8 +29,8 @@ end
local function updateConfig()
local merged = {}
- if CONFIGPATH then
- local cfg = cfgLoader.loadLocalConfig(CONFIGPATH)
+ local cfg = cfgLoader.loadLocalConfig(CONFIGPATH)
+ if cfg then
log.debug('load config from local', CONFIGPATH)
-- watch directory
filewatch.watch(workspace.getAbsolutePath(CONFIGPATH):gsub('[^/\\]+$', ''))