Skip to content

Commit 01ad845

Browse files
committed
refactor
1 parent 40943a7 commit 01ad845

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Console/RunCommand.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,10 @@ protected function isPhpFile(string $path): bool
8080

8181
protected function restartAsyncRun(): self
8282
{
83-
$this->components->info('Change detected! Restarting bot...');
83+
$this->components->info('Changes detected! Restarting bot...');
8484

8585
$this->runProcess->stop();
86-
$this->runProcess->wait(function (string $type, string $output) {
87-
if(Process::isTtySupported() && !$this->option('without-tty')) {
88-
$this->output->write($output);
89-
}
90-
});
86+
$this->runProcess->wait();
9187

9288
$this->startAsyncRun();
9389

0 commit comments

Comments
 (0)