Skip to content

Commit 9aaf20e

Browse files
Update docs/language/learn-ql/java/basic-query-java.rst
Co-authored-by: Marcono1234 <[email protected]>
1 parent a79f09f commit 9aaf20e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/language/learn-ql/java/basic-query-java.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ Browsing the results of our basic query shows that it could be improved. Among t
107107
.. code-block:: java
108108
109109
if (...) {
110-
...
110+
...
111111
} else if (!strcmp(option, "-verbose") {
112-
// nothing to do - handled earlier
112+
// nothing to do - handled earlier
113113
} else {
114-
error("unrecognized option");
114+
error("unrecognized option");
115115
}
116116
117117
In this case, identifying the ``if`` statement with the empty ``then`` branch as redundant is a false positive. One solution to this is to modify the query to ignore empty ``then`` branches if the ``if`` statement has an ``else`` branch.

0 commit comments

Comments
 (0)