Skip to content

Commit

Permalink
Update rewrite-json/src/main/java/org/openrewrite/json/AddKeyValue.java
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
dpozinen and github-actions[bot] authored Jul 18, 2024
1 parent a0a6646 commit 61ccc59
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public TreeVisitor<?, ExecutionContext> getVisitor() {
return new JsonIsoVisitor<ExecutionContext>() {

@Override
public Json.JsonObject visitObject(Json.JsonObject obj, ExecutionContext context) {
obj = super.visitObject(obj, context);
public Json.JsonObject visitObject(Json.JsonObject obj, ExecutionContext ctx) {
obj = super.visitObject(obj, ctx);

if (pathMatcher.matches(getCursor()) && objectDoesNotContainKey(obj, key)) {

Expand Down

0 comments on commit 61ccc59

Please sign in to comment.