Skip to content

Commit

Permalink
fix the last else branch
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Oct 15, 2024
1 parent 719e002 commit 002b161
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index-v11.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ Cypress.Commands.add(
} else if (typeof assertionValue1 !== 'undefined') {
assertionReduced =
assertionReduced[assertionPart](assertionValue1)
} else {
assertionReduced = assertionReduced[assertionPart]
}
} else {
assertionReduced = assertionReduced[assertionPart]
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ if (major < 12) {
} else if (typeof assertionValue1 !== 'undefined') {
assertionReduced =
assertionReduced[assertionPart](assertionValue1)
} else {
assertionReduced = assertionReduced[assertionPart]
}
} else {
assertionReduced = assertionReduced[assertionPart]
Expand Down

0 comments on commit 002b161

Please sign in to comment.