Closed EstevanBR closed 1 month ago
Feel free to close this issue if it's not valid.
I see things like
if let res = args[0].asObject() {
Which mixes safe code (if let) with unsafe array indexing (args[0])
if let
args[0]
Which would imo be safer as
if let firstArg = args.first, let res = firstArg.asObject() {
Where are you seeing this?
If this is for the generated setter arguments, we have bigger problems if the setter does not get at least one value ;-)
Closing, as it would not improve much per above
Feel free to close this issue if it's not valid.
I see things like
Which mixes safe code (
if let
) with unsafe array indexing (args[0]
)Which would imo be safer as