Skip to content

Commit 3f0ee07

Browse files
Cleaner io call in Drupal root null check
Co-authored-by: Alex Skrypnyk <[email protected]>
1 parent af8d839 commit 3f0ee07

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: scripts/composer/ScriptHandler.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,8 @@ public static function createRequiredFiles(Event $event) {
2222
$drupalFinder = new DrupalFinderComposerRuntime();
2323
$drupalRoot = $drupalFinder->getDrupalRoot();
2424

25-
// If Drupal root was not found, exit.
2625
if (is_null($drupalRoot)) {
27-
$io = $event->getIO();
28-
$io->writeError(
29-
'<error>Drupal root could not be detected.</error>',
30-
);
26+
$event->getIO()->writeError('<error>Drupal root could not be detected.</error>');
3127
exit(1);
3228
}
3329

0 commit comments

Comments
 (0)