make the description simple

This commit is contained in:
LaLucid
2022-04-25 02:35:34 +08:00
committed by GitHub
parent 38d3c091d0
commit 56cc9fc163

View File

@ -1289,8 +1289,7 @@ public void foo() throws Exception {
<description>
<![CDATA[
Look for ternary operators with the form `condition ? literalBoolean : foo`
or `condition ? foo : literalBoolean`
or `condition ? literalBoolean1 : literalBoolean2`.
or `condition ? foo : literalBoolean`.
These expressions can be simplified as follows:
* `condition ? true : expr` simplifies to `condition || expr`