Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Remove redundant detach checks #102

Merged
merged 4 commits into from
Nov 17, 2022
Merged

Remove redundant detach checks #102

merged 4 commits into from
Nov 17, 2022

Conversation

syg
Copy link
Collaborator

@syg syg commented Nov 11, 2022

There are a few places where a detach check is performed and then is immediately followed by calling IntegerIndexedObjectLength and check for ~out-of-bounds~, which is redundant.

@syg syg requested a review from rkirsling November 11, 2022 22:05
@syg
Copy link
Collaborator Author

syg commented Nov 11, 2022

PTAL @Constellation

Copy link
Member

@rkirsling rkirsling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool. Seems like this one could also be removed if we want.

@syg
Copy link
Collaborator Author

syg commented Nov 15, 2022

@rkirsling Nice catch! Also removed.

syg added 4 commits November 16, 2022 17:08
There are a few places where a detach check is performed and then is
immediately followed by calling IntegerIndexedObjectLength and check for
~out-of-bounds~, which is redundant.
@syg syg force-pushed the redundant-detach-check branch from be832c2 to 4b27d73 Compare November 17, 2022 01:16
@syg syg merged commit d02aac0 into master Nov 17, 2022
@syg syg deleted the redundant-detach-check branch November 17, 2022 01:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants