diff options
Diffstat (limited to 'script/core/diagnostics/duplicate-doc-alias.lua')
-rw-r--r-- | script/core/diagnostics/duplicate-doc-alias.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/diagnostics/duplicate-doc-alias.lua b/script/core/diagnostics/duplicate-doc-alias.lua index 3df6f972..821bb1d8 100644 --- a/script/core/diagnostics/duplicate-doc-alias.lua +++ b/script/core/diagnostics/duplicate-doc-alias.lua @@ -17,6 +17,9 @@ return function (uri, callback) for _, doc in ipairs(state.ast.docs) do if doc.type == 'doc.alias' then local name = guide.getKeyName(doc) + if not name then + return + end if not cache[name] then local docs = vm.getDocSets(uri, name) cache[name] = {} |