aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authormoxie <moxie@3kgcat.fi>2026-03-13 20:31:23 +0200
committermoxie <moxie@3kgcat.fi>2026-03-13 20:31:23 +0200
commitd4e100dd5f84d77b3dd16af2d7f2590a8b2bd030 (patch)
treedb5f63dc5041e71198452dd4c5a827946bbcadbf /lua
parent716fff3bff92fd9dd67163117f71f52e7a1f5bfd (diff)
fix: add nullable type annotation for link_node
Diffstat (limited to 'lua')
-rw-r--r--lua/muwiki/links/detection.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/muwiki/links/detection.lua b/lua/muwiki/links/detection.lua
index 356e0ba..7b1f317 100644
--- a/lua/muwiki/links/detection.lua
+++ b/lua/muwiki/links/detection.lua
@@ -24,7 +24,7 @@ function M.get_link()
return nil
end
- local link_node = node
+ local link_node = node ---@type TSNode|nil
while link_node and link_node:type() ~= 'inline_link' do
link_node = link_node:parent()
end