Skip to content
New issue

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

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

Already on GitHub? # to your account

Let util_path return nil on failure #189

Merged
merged 1 commit into from
Jun 11, 2015
Merged

Conversation

crishoj
Copy link
Contributor

@crishoj crishoj commented Jun 11, 2015

Array#each returns the [array] object it was invoked upon, so in case util_path doesn't find the executable, it would return the array ['/usr/local/bin', '/usr/bin'], despite the rest of the code relies on it returning nil in case of failure.

Array#each returns the [array] object it was invoked upon, so in case `util_path` doesn't find the executable, it would return the array `['/usr/local/bin', '/usr/bin']`, despite the rest of the code relies on it returning nil in case of failure.
legal90 added a commit that referenced this pull request Jun 11, 2015
Let `util_path` return nil on failure
@legal90 legal90 merged commit 80c7ea9 into Parallels:master Jun 11, 2015
@legal90
Copy link
Collaborator

legal90 commented Jun 11, 2015

@crishoj Thank you! 👍

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants