Skip to content

Commit 3bf5bea

Browse files
committed
improve code for #755
1 parent 692cab6 commit 3bf5bea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

karate-core/src/main/java/com/intuit/karate/core/ScenarioExecutionUnit.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,13 @@ public StepResult execute(Step step) {
206206
}
207207
boolean hidden = step.isPrefixStar() && !step.isPrint() && !actions.context.getConfig().isShowAllSteps();
208208
if (stopped) {
209-
Result result;
209+
Result stepResult;
210210
if (aborted && actions.context.getConfig().isAbortedStepsShouldPass()) {
211-
result = Result.passed(0);
211+
stepResult = Result.passed(0);
212212
} else {
213-
result = Result.skipped();
213+
stepResult = Result.skipped();
214214
}
215-
StepResult sr = new StepResult(step, result, null, null, null);
215+
StepResult sr = new StepResult(step, stepResult, null, null, null);
216216
sr.setHidden(hidden);
217217
return afterStep(sr);
218218
} else {

karate-netty/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ Scenario: pathMatches('/v1/headers') && headerContains('val', 'foo')
446446
```
447447

448448
## `bodyPath()`
449-
A very powerful helper function that can run JsonPath or XPath expressions agains the request body or payload.
449+
A very powerful helper function that can run JsonPath or XPath expressions against the request body or payload.
450450

451451
JSON example:
452452

0 commit comments

Comments
 (0)