mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
12 lines
507 B
HTML
12 lines
507 B
HTML
<html>
|
|
<body>
|
|
Reports conditional expressions and suggests simplifying them.
|
|
<p>Examples:</p>
|
|
<pre><code>condition ? true : foo → condition || foo</code></pre>
|
|
<pre><code>condition ? false : foo → !condition && foo</code></pre>
|
|
<pre><code>condition ? foo : !foo → condition == foo</code></pre>
|
|
<pre><code>condition ? true : false → condition</code></pre>
|
|
<pre><code>a == b ? b : a → a</code></pre>
|
|
<pre><code>result != null ? result : null → result</code></pre>
|
|
</body>
|
|
</html> |