Skip to content
Permalink
Browse files
Remove unused local variable
this is the old default else branch, where implicitly  is true.
  • Loading branch information
FSchumacher committed Mar 5, 2022
1 parent a28e31b commit ec257dcd150b0e166b5d4b59a7edb136bb55bde6
Showing 1 changed file with 1 addition and 2 deletions.
@@ -308,7 +308,6 @@ private AssertionResult evaluateResponse(SampleResult response) {
boolean contains = isContainsType(); // do it once outside loop
boolean equals = isEqualsType();
boolean substring = isSubstringType();
boolean matches = isMatchType();

log.debug("Test Type Info: contains={}, notTest={}, orTest={}", contains, notTest, orTest);

@@ -342,7 +341,7 @@ private AssertionResult evaluateResponse(SampleResult response) {
found = toCheck.equals(stringPattern);
} else if (substring) {
found = toCheck.contains(stringPattern);
} else {
} else { // this is the old `matches` part which means `isMatchType()` is true
if (useJavaRegex) {
found = matchesWithJavaRegex(toCheck, stringPattern);
} else {

0 comments on commit ec257dc

Please sign in to comment.