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

Correcting some behavior in Path:find_upwards #641

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

StefanZuefeldt
Copy link

find_upwards fails on Windows systems, as it passes the incorrect argument type to path.root.

Additionally, find_upwards currently returns an empty string "" if no result is found.
This is incompatible with find_upwards returning a Path instance when a result is found.

now calls Path:root properly, and
return nil at the end of execution instead of emptystring
@StefanZuefeldt
Copy link
Author

If you want me to revert the return value change, I can - it was just causing me a bit of grief expecting a nil value on failure to finally realize it was a string for some reason.

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.

1 participant