Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor tweaks #801

Merged
merged 10 commits into from
Apr 2, 2024
Merged

Minor tweaks #801

merged 10 commits into from
Apr 2, 2024

Conversation

philstopford
Copy link
Contributor

No description provided.

The variables are initialized in the constructor, and this using line seems to be unused.
Variable initialized in constructor.
min_area also not used.
_solutionTree initialized in constructor.
Assuming that the user can supply nulls as input. This addresses parts of AngusJohnson#802

One remaining issue is that there is a null check against a value returned from PathFromStr(), but that method always returns a non-null value, so the check would appear to be meaningless.
These seem to be redundant due to outer checks.
Also remove one unused variable (result)
Remove redundant .ToString()
The long while statement made this confusing to understand. Use braces to make the end of the statement and the action more apparent.
@AngusJohnson AngusJohnson merged commit ce4c338 into AngusJohnson:main Apr 2, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants