minor #38299 [ErrorHandler] Return false directly and remove unused variable (fancyweb)
authorNicolas Grekas <nicolas.grekas@gmail.com>
Fri, 25 Sep 2020 09:42:25 +0000 (11:42 +0200)
committerNicolas Grekas <nicolas.grekas@gmail.com>
Fri, 25 Sep 2020 09:42:25 +0000 (11:42 +0200)
commit6bb0ef4f52adcca59b3a2e54abfe70e1aa9c7490
tree758d5fa380a9760676b017cce823d5ad3c6aba75
parentf71d8cfabb5fe96addaf82f5c5def89f4bfec4a4
parent3933957d1a3bf60c4a6032f0f966a93bfa6a365b
minor #38299 [ErrorHandler] Return false directly and remove unused variable (fancyweb)

This PR was merged into the 4.4 branch.

Discussion
----------

[ErrorHandler] Return false directly and remove unused variable

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | https://github.com/symfony/symfony/issues/37848
| License       | MIT
| Doc PR        | -

To return true, $type and $log both need to be true. But to enter the condition, one of them has to be false.

I also spotted an unused variable below so I removed it.

Commits
-------

3933957d1a [ErrorHandler] Return false directly and remove unused variable