Skip to content

Commit 65f2b13

Browse files
committed
[Console] remove dead code
1 parent 8555114 commit 65f2b13

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Symfony/Component/Console/Application.php

+4-6
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,13 @@ public function run(InputInterface $input = null, OutputInterface $output = null
112112
try {
113113
$e = null;
114114
$exitCode = $this->doRun($input, $output);
115-
} catch (\Exception $x) {
116-
$e = $x;
117-
} catch (\Throwable $x) {
118-
$e = new FatalThrowableError($x);
115+
} catch (\Exception $e) {
116+
} catch (\Throwable $e) {
119117
}
120118

121119
if (null !== $e) {
122-
if (!$this->catchExceptions || !$x instanceof \Exception) {
123-
throw $x;
120+
if (!$this->catchExceptions || !$e instanceof \Exception) {
121+
throw $e;
124122
}
125123

126124
if ($output instanceof ConsoleOutputInterface) {

0 commit comments

Comments
 (0)