Skip to content

Commit 351d67f

Browse files
committed
Refactored error handling in UnregisteredActionsCommand
1 parent 70a21a7 commit 351d67f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Console/UnregisteredActionsCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ public function handle(): int
4949
return $this->output($process->getOutput());
5050
} catch (ProcessFailedException) {
5151
$this->components->error('No unregistered actions found in the codebase.');
52+
53+
return self::SUCCESS;
5254
} catch (Exception $exception) {
5355
$this->components->error('Unexpected Error: '.$exception->getMessage());
5456

5557
return self::FAILURE;
5658
}
57-
58-
return self::SUCCESS;
5959
}
6060

6161
/**

0 commit comments

Comments
 (0)