-
-
Notifications
You must be signed in to change notification settings - Fork 115
Closed
Description
Prettier-Java 2.7.5
--print-width 55Input:
public abstract class Foo implements MyInterface {
@Override public String foo() {
return true
? // foo
1
: // bar
2;
}
}Output:
public abstract class Foo implements MyInterface {
@Override
public String foo() {
return true // foo
? 1 // bar
: 2;
}
}Expected behavior:
Either the ternary to not be modified or something like:
public abstract class Foo implements MyInterface {
@Override
public String foo() {
return true
? 1 // foo
: 2; // bar
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels