summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/duplicate-set-field.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/diagnostics/duplicate-set-field.lua')
-rw-r--r--script/core/diagnostics/duplicate-set-field.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/script/core/diagnostics/duplicate-set-field.lua b/script/core/diagnostics/duplicate-set-field.lua
index bf7fd069..7c857a51 100644
--- a/script/core/diagnostics/duplicate-set-field.lua
+++ b/script/core/diagnostics/duplicate-set-field.lua
@@ -30,6 +30,13 @@ return function (uri, callback)
if not name then
goto CONTINUE
end
+ local value = guide.getObjectValue(nxt)
+ if value then
+ if value.type == 'boolean'
+ or value.type == 'nil' then
+ goto CONTINUE
+ end
+ end
if not sets[name] then
sets[name] = {}
end