Skip to content

Commit c00e2c4

Browse files
committed
Revert "fix: keep previous returncode when using @then"
This reverts commit 7343476.
1 parent 7343476 commit c00e2c4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

bash_unit

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,6 @@ gherkin_WHEN() {
542542
}
543543

544544
gherkin_THEN() {
545-
local rc=$?
546545
local COL=""
547546
local NCOL=""
548547
if is_terminal; then
@@ -557,7 +556,6 @@ gherkin_THEN() {
557556
gherkin_last_msg="${gherkin_last_msg} ${COL}WHEN${NCOL} $gherkin_last_when\n"
558557
gherkin_last_msg="${gherkin_last_msg} ${COL}THEN${NCOL} $gherkin_last_then"
559558
echo ""
560-
return $rc
561559
}
562560

563561
gherkin_AND() { gherkin_THEN "$@"; }

0 commit comments

Comments
 (0)