lint: use more specific type for internal entries

This commit is contained in:
Steven Arcangeli 2025-10-15 10:42:52 -07:00
parent f55ebb0079
commit 71948729cd
4 changed files with 7 additions and 7 deletions

View file

@ -200,7 +200,7 @@ local function is_entry_directory(entry)
return true
elseif type == "link" then
local meta = entry[FIELD_META]
return meta and meta.link_stat and meta.link_stat.type == "directory"
return (meta and meta.link_stat and meta.link_stat.type == "directory") == true
else
return false
end