Skip to content

Commit 70f038a

Browse files
committed
make sure each line only gets added once
1 parent 0b93694 commit 70f038a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Traits/HasLine.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ public function line($line)
2929
{
3030
if (trait_exists(HasAction::class) && property_exists($this, 'actionText') && !$this->actionText) {
3131
$this->introLines[] = $this->formatLine($line);
32+
} else {
33+
$this->outroLines[] = $this->formatLine($line);
3234
}
3335

34-
$this->outroLines[] = $this->formatLine($line);
35-
3636
return $this;
3737
}
3838

0 commit comments

Comments
 (0)