[Console] remove dead code

This commit is contained in:
Tobias Schultze 2017-11-13 22:35:01 +01:00
parent 85551141a5
commit 65f2b13e6b
1 changed files with 4 additions and 6 deletions

View File

@ -112,15 +112,13 @@ class Application
try {
$e = null;
$exitCode = $this->doRun($input, $output);
} catch (\Exception $x) {
$e = $x;
} catch (\Throwable $x) {
$e = new FatalThrowableError($x);
} catch (\Exception $e) {
} catch (\Throwable $e) {
}
if (null !== $e) {
if (!$this->catchExceptions || !$x instanceof \Exception) {
throw $x;
if (!$this->catchExceptions || !$e instanceof \Exception) {
throw $e;
}
if ($output instanceof ConsoleOutputInterface) {