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

MpsLoadTask: simplify and fix the MPS home check #70

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

Conversation

sergej-koscejev
Copy link
Contributor

The original code was checking getPath(), which is the full path of a file, against "build.txt", which is just the name.

Also, it isn't necessary to iterate through all the files when we can simply check for existence of a file.

The original code was checking getPath(), which is the full path of a file, against "build.txt", which is just the name.

Also, it isn't necessary to iterate through all the files when we can simply check for existence of a file.
@sergej-koscejev
Copy link
Contributor Author

This went unnoticed for quite some time probably because it only works if assertions are enabled, and they usually aren't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant