Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
david-waltermire authored Jan 7, 2025
1 parent 8be41b0 commit b943cfe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,9 @@ public void pushExecutionStack(@NonNull IExpression expression) {
*/
public void popExecutionStack(@NonNull IExpression expression) {
IExpression popped = this.sharedState.executionStack.pop();
assert expression.equals(popped);
if (!expression.equals(popped)) {
throw new IllegalStateException("Popped expression does not match expected expression");
}
}

/**
Expand Down

0 comments on commit b943cfe

Please sign in to comment.