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

Remove superfluous is_file() check #594

Merged
merged 1 commit into from
Oct 20, 2018
Merged

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Oct 18, 2018

this lines were added in the past to handle the case where $filePath is „Unknown“, see
f83625d

Later on a additional check for „Unknown“ was added for open_basedir related errors
1c0ffa0

Therefore the lines added in the first place are no longer usefull.

Additionally there is a feature request in #586 for which the mentioned lines are getting in our way.

@staabm
Copy link
Contributor Author

staabm commented Oct 18, 2018

@gharlan could you confirm this fix?

@staabm
Copy link
Contributor Author

staabm commented Oct 20, 2018

I just verified that this works as expected.

therefore this is ready to land.

@GrahamCampbell
Copy link
Contributor

Maybe we should also set the file contents cache to some special value, so we know to not keep going to the disk over and over if the file doesn't exist?

@denis-sokolov denis-sokolov merged commit c91e02d into filp:master Oct 20, 2018
@staabm staabm deleted the patch-2 branch October 20, 2018 16:01
@staabm
Copy link
Contributor Author

staabm commented Oct 20, 2018

Maybe we should also set the file contents cache to some special value, so we know to not keep going to the disk over and over if the file doesn't exist?

Did you ever run into a situation in which it mattered?

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.

None yet

3 participants