Merge pull request #64 from wiam77/patch-1

Simplify connector check in Properties type function
This commit is contained in:
centau 2026-01-26 12:09:00 +00:00 committed by GitHub
commit 3faa1ed701
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,7 +76,6 @@ type function Properties(instance: type?)
for i, v in instance:properties() do for i, v in instance:properties() do
local connector = v.read and v.read.tag == "table" and v.read:readproperty(types.singleton("Connect")) local connector = v.read and v.read.tag == "table" and v.read:readproperty(types.singleton("Connect"))
if connector then if connector then
if not connector then continue end
local params = connector:parameters().head local params = connector:parameters().head
if not params then continue end if not params then continue end
local listener = params[2] local listener = params[2]