Skip to content

Commit 1cf0829

Browse files
committed
Remove uneeded directory existence check
1 parent 899bb25 commit 1cf0829

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

src/Command/InstallCommand.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,6 @@ public function linkPluginAssets(ConsoleIo $io): void
122122
{
123123
$io->info('Linking plugin assets...');
124124

125-
// Ensure the webroot directory exists before symlinking
126-
if (!is_dir(WWW_ROOT)) {
127-
$filesystem = new Filesystem();
128-
$filesystem->mkdir(WWW_ROOT);
129-
}
130-
131125
$result = $this->executeCommand(PluginAssetsSymlinkCommand::class, ['name' => 'BootstrapUI'], $io);
132126
if (
133127
$result !== static::CODE_SUCCESS &&

tests/bootstrap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
define('CONFIG', TEST_APP . 'config' . DS);
4141

4242
// phpcs:disable
43+
@mkdir(WWW_ROOT);
4344
@mkdir(LOGS);
4445
@mkdir(SESSIONS);
4546
@mkdir(CACHE);

0 commit comments

Comments
 (0)