Skip to content

Commit eaf9c7d

Browse files
committed
fixing after response logic on cli commands
1 parent aaad550 commit eaf9c7d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/Terminal/TerminalTrait.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,10 @@ public function run(bool $emulate = false): bool
8686
$this->processor = [$this, 'main'];
8787
}
8888

89-
$continue = $this->prepare()
90-
&& $response->getStatus() == 200
91-
&& $this->process();
89+
$continue = $this->prepare();
90+
if ($continue && $response->getStatus() == 200) {
91+
$continue = $this->process();
92+
}
9293

9394
if (!$continue) {
9495
return false;

0 commit comments

Comments
 (0)