Skip to content

Commit 100354d

Browse files
committed
Formatting
1 parent 9e1e1ec commit 100354d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

liquidjava-verifier/src/main/java/liquidjava/diagnostics/errors/RefinementError.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,12 @@ public String getCounterExampleString() {
4444
List<String> foundVarNames = new ArrayList<>();
4545
found.getValue().getVariableNames(foundVarNames);
4646
String counterexampleExp = counterexample.assignments().stream()
47-
.filter(a -> foundVarNames.contains(a.first())) // only include variables that appear in the found value
48-
.map(a -> a.first() + " == " + a.second()) // format as "var == value"
49-
.collect(Collectors.joining(" && ")); // join with "&&"
47+
// only include variables that appear in the found value
48+
.filter(a -> foundVarNames.contains(a.first()))
49+
// format as "var == value"
50+
.map(a -> a.first() + " == " + a.second())
51+
// join with "&&"
52+
.collect(Collectors.joining(" && "));
5053

5154
if (counterexampleExp.isEmpty() || counterexampleExp.equals(found.getValue().toString()))
5255
return null;

0 commit comments

Comments
 (0)