-
-
Notifications
You must be signed in to change notification settings - Fork 955
Changing leap (java) comments for issue #2370
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
Conversation
siebenschlaefer
left a comment
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.
I'm not involved in the Java track, I just noticed two small things.
| @@ -0,0 +1,3 @@ | |||
| # avoid redundant ternary | |||
|
|
|||
| Try returning the conditions directly instead of returning boolean literals (true and flase). | |||
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.
typo: flase
also, consider surrounding keywords with backticks: `true` and `false`
| @@ -0,0 +1,3 @@ | |||
| # avoid `if` statements | |||
|
|
|||
| Consider converting the if statement(s) into a single expression using logical operators (`&&`, `||`) or ternary operators. | |||
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.
maybe surround the "if" with backticks: `if`
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.
Thanks for catching that, really appreciate it!
|
+cc @exercism/java |
Co-authored-by: Kah Goh <[email protected]>
kahgoh
left a comment
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.
Looks good to me.
|
+cc @exercism/guardians |
This PR is linked with this and addresses the issue raised on
java-analyzerrepo by @kahgoh!