Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Cleaner io call in Drupal root null check
Co-authored-by: Alex Skrypnyk <alex@drevops.com>
  • Loading branch information
jnoordsij and AlexSkrypnyk committed Jul 2, 2024
commit 3f0ee072e290ead1587150d0b1b6f63722db5412
6 changes: 1 addition & 5 deletions scripts/composer/ScriptHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,8 @@ public static function createRequiredFiles(Event $event) {
$drupalFinder = new DrupalFinderComposerRuntime();
$drupalRoot = $drupalFinder->getDrupalRoot();

// If Drupal root was not found, exit.
if (is_null($drupalRoot)) {
$io = $event->getIO();
$io->writeError(
'<error>Drupal root could not be detected.</error>',
);
$event->getIO()->writeError('<error>Drupal root could not be detected.</error>');
exit(1);
}

Expand Down