Skip to content

Commit e7755e4

Browse files
jagdish-15kahgoh
andauthored
Changing leap (java) comments for issue (#2370)
* first push for leap issue * Typos and formatting fixes * Typos and formatting fixes * Adding avoid_multiple_ternary.md * Update analyzer-comments/java/leap/avoid_multiple_ternary.md Co-authored-by: Kah Goh <[email protected]> --------- Co-authored-by: Kah Goh <[email protected]>
1 parent d79d13e commit e7755e4

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

analyzer-comments/java/leap/avoid_conditional_logic.md

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# avoid `if` statements
2+
3+
Consider converting the `if` statement(s) into a single expression using logical operators (`&&`, `||`) or ternary operators.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# avoid multiple ternary
2+
3+
Consider using a single ternary operator for a simpler solution.

0 commit comments

Comments
 (0)