diff --git a/src/main/java/org/openrewrite/python/tree/Py.java b/src/main/java/org/openrewrite/python/tree/Py.java index cc87dc1..18ddbf9 100644 --- a/src/main/java/org/openrewrite/python/tree/Py.java +++ b/src/main/java/org/openrewrite/python/tree/Py.java @@ -1111,8 +1111,8 @@ public JLeftPadded getElseBlock() { } public TrailingElseWrapper withElseBlock(JLeftPadded elseBlock) { - return t.elseBlock == elseBlock - ? t : + return t.elseBlock == elseBlock ? + t : new TrailingElseWrapper(t.padding, t.id, t.prefix, t.markers, t.statement, elseBlock); } } @@ -1399,9 +1399,9 @@ public List> getNames() { } public VariableScope withNames(List> names) { - return names == t.names - ? t - : new VariableScope(t.id, t.prefix, t.markers, t.kind, names); + return names == t.names ? + t : + new VariableScope(t.id, t.prefix, t.markers, t.kind, names); } } } @@ -1472,9 +1472,9 @@ public List> getTargets() { } public Del withTargets(List> expressions) { - return expressions == t.targets - ? t - : new Del(t.id, t.prefix, t.markers, expressions); + return expressions == t.targets ? + t : + new Del(t.id, t.prefix, t.markers, expressions); } } } @@ -1626,9 +1626,9 @@ public JLeftPadded getValue() { } public NamedArgument withValue(JLeftPadded value) { - return value == t.value - ? t - : new NamedArgument(t.id, t.prefix, t.markers, t.name, value, t.type); + return value == t.value ? + t : + new NamedArgument(t.id, t.prefix, t.markers, t.name, value, t.type); } } } @@ -1746,9 +1746,9 @@ public JLeftPadded getFrom() { } public ErrorFrom withFrom(JLeftPadded from) { - return from == t.from - ? t - : new ErrorFrom(t.id, t.prefix, t.markers, t.error, from, t.type); + return from == t.from ? + t : + new ErrorFrom(t.id, t.prefix, t.markers, t.error, from, t.type); } } @@ -1834,9 +1834,9 @@ public static class Padding { } public MatchCase withGuard(JLeftPadded guard) { - return guard == t.guard - ? t - : new MatchCase(t.id, t.prefix, t.markers, t.pattern, guard, null); + return guard == t.guard ? + t : + new MatchCase(t.id, t.prefix, t.markers, t.pattern, guard, null); } } @@ -1937,9 +1937,9 @@ public JContainer getChildren() { } public Pattern withChildren(JContainer children) { - return children == t.children - ? t - : new Pattern(t.id, t.prefix, t.markers, t.kind, children, t.type); + return children == t.children ? + t : + new Pattern(t.id, t.prefix, t.markers, t.kind, children, t.type); } }