Skip to content

TASK: Remove try catch block in Files::getFileContents#816

Closed
dfeyer wants to merge 1 commit intoneos:4.0from
dfeyer:task-cleanup-files
Closed

TASK: Remove try catch block in Files::getFileContents#816
dfeyer wants to merge 1 commit intoneos:4.0from
dfeyer:task-cleanup-files

Conversation

@dfeyer
Copy link
Copy Markdown
Contributor

@dfeyer dfeyer commented Jan 8, 2017

This change remove the try catch block, file_get_contents never throw an
exception and definitively not a Flow exception. Maybe a left over after
some refactoring ...

This change remove the try catch block, file_get_contents never throw an
exception and definitively not a Flow exception. Maybe a left over after
some refactoring ...
@mention-bot
Copy link
Copy Markdown

@dfeyer, thanks for your PR! By analyzing the history of the files in this pull request, we identified @kdambekalns, @kitsunet and @daniellienert to be potential reviewers.

@kdambekalns
Copy link
Copy Markdown
Member

But if it emits a warning, that will be converted into an exception by our settings, so… Did you check what happens with a non-readable file, e.g.?

@aertmann
Copy link
Copy Markdown
Collaborator

what @kdambekalns said

@kitsunet
Copy link
Copy Markdown
Member

kitsunet commented Feb 7, 2017

Maybe a test for that case would help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants