Skip to content

Commit

Permalink
Updates keep the code style consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
yulong.guo committed May 15, 2024
1 parent bbc407b commit d7b9975
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,11 @@ private String generateWhileNode(SourceOfRandomness random) {

private String generateAssignmentNode(SourceOfRandomness random) {
String token = random.choose(ASSIGNMENT_TOKENS);
List<Function<SourceOfRandomness, String>> lhsGenerators = Arrays.asList(
String lhs = random.choose(Arrays.<Function<SourceOfRandomness, String>>asList(
this::generateIdentNode,
this::generateIndexNode,
this::generatePropertyNode
);
String lhs = random.choose(lhsGenerators).apply(random);
)).apply(random);
String rhs = generateExpression(random);
return lhs + " " + token + " " + rhs + ";";
}
Expand Down

0 comments on commit d7b9975

Please sign in to comment.