-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trivial code cleanup #88505
Trivial code cleanup #88505
Conversation
Pinging @elastic/es-analytics-geo (Team:Analytics) |
Hi @craigtaverner, I've created a changelog YAML for you. |
@@ -118,11 +118,9 @@ public String toString() { | |||
StringBuilder buf = new StringBuilder("["); | |||
boolean first = true; | |||
for (E e : enums) { | |||
if (first == false) buf.append(", "); | |||
first = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we really like to add curly brackets even for those trivial statements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This tiny cleanup was done as part of #88487, but is clearly not related to that PR. It should have no behavioural or performance implications and is simply a very small cleanup to a method that does a kind of
String.join
function.