Simplify connector check in Properties type function

Removed redundant check for connector in the Properties type function.
This commit is contained in:
wiam 2026-01-25 23:15:48 -03:00 committed by GitHub
parent 2184a0fa6a
commit 820bda8eb1
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]