minor #23124 [Console] remove now useless condition (xabbuh)

This PR was merged into the 3.4 branch.

Discussion
----------

[Console] remove now useless condition

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

c9c3495fc0 remove now useless condition
This commit is contained in:
Fabien Potencier 2017-06-10 07:55:02 -07:00
commit 7c1febd600
1 changed files with 1 additions and 3 deletions

View File

@ -43,9 +43,7 @@ class ProcessHelper extends Helper
$formatter = $this->getHelperSet()->get('debug_formatter');
if (is_array($cmd)) {
$process = new Process($cmd);
} elseif ($cmd instanceof Process) {
if ($cmd instanceof Process) {
$process = $cmd;
} else {
$process = new Process($cmd);