Skip to content

Review convert if/ternary expression analyzer comment in leap year #235

Closed
@kahgoh

Description

@kahgoh

The analyzer produces the comment Consider converting the if-statement(s) and/or ternary expressions into a single expression using the && and || operators. for the solution return (year % 100 == 0) ? (year % 400 == 0) : (year % 4 == 0);.

The solution seems valid (so the analyzer shouldn't produce the comment).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions