[Console] remove dead code

This commit is contained in:
Tobias Schultze 2017-11-13 22:35:01 +01:00
parent 85551141a5
commit 65f2b13e6b

View File

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