refactor: address emmylua diagnostics
This commit is contained in:
@@ -33,6 +33,15 @@ local function with_file(path, settings)
|
||||
return
|
||||
end
|
||||
|
||||
if type(resp) ~= "table" then
|
||||
log.warning(
|
||||
"Invalid json in file %s: expected table, got: %s",
|
||||
path,
|
||||
type(resp)
|
||||
)
|
||||
return
|
||||
end
|
||||
|
||||
return vim.tbl_deep_extend("force", settings or {}, resp)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user