Skip to content

Commit d520b7c

Browse files
committed
Code review - removed unnecessary deploy config check
1 parent f2e283c commit d520b7c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

setup/src/Magento/Setup/Console/Command/DiCompileCommand.php

-5
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
167167
$modulePaths = $this->componentRegistrar->getPaths(ComponentRegistrar::MODULE);
168168
$moduleStatuses = $this->deploymentConfig->get(ConfigOptionsListConstants::KEY_MODULES);
169169

170-
if (!$moduleStatuses || !is_array($moduleStatuses)) {
171-
$output->writeln('<error>Deployment config not available.</error>');
172-
return Cli::RETURN_FAILURE;
173-
}
174-
175170
$modulePathsEnabled = array_filter($modulePaths, function ($path, $module) use ($moduleStatuses) {
176171
return ($moduleStatuses[$module] ?? 0) === 1;
177172
}, ARRAY_FILTER_USE_BOTH);

0 commit comments

Comments
 (0)