Skip to content

Commit 789605b

Browse files
committed
perf(missing-fields): switch condition order
1 parent 625cc64 commit 789605b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/core/diagnostics/missing-fields.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ return function (uri, callback)
7070

7171
for _, field in ipairs(fields) do
7272
if not field.optional
73-
and not vm.compileNode(field):isNullable()
74-
and field.type == "doc.field" then
73+
and field.type == "doc.field"
74+
and not vm.compileNode(field):isNullable() then
7575
local key = vm.getKeyName(field)
7676
if not key then
7777
local fieldnode = vm.compileNode(field.field)[1]

0 commit comments

Comments
 (0)