We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb6b6c3 commit 980afb5Copy full SHA for 980afb5
javascript/ql/test/query-tests/Expressions/UnneededDefensiveProgramming/tst.js
@@ -172,13 +172,12 @@
172
if (typeof module !== "undefined" && module.exports);
173
if (typeof global !== "undefined" && global.process);
174
175
- u && (f(), u.p);
176
- u && (u.p, f()); // technically not OK, but it seems like an unlikely pattern
+ u && (f(), u.p); // $ Alert[js/trivial-conditional]
+ u && (u.p, f()); // $ Alert[js/trivial-conditional] - technically not OK, but it seems like an unlikely pattern
177
u && !u.p; // $ Alert[js/unneeded-defensive-code]
178
u && !u(); // $ Alert[js/unneeded-defensive-code]
179
180
181
-
182
function hasCallbacks(success, error) {
183
if (success) success()
184
if (error) error()
0 commit comments