File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
javascript/ql/test/query-tests/Expressions/UnneededDefensiveProgramming Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 159159 }
160160 }
161161
162- if ( typeof x !== undefined ) ; // $ Alert[js/comparison-between-incompatible-types]
163- if ( typeof window !== undefined ) ; // $ Alert[js/comparison-between-incompatible-types]
162+ if ( typeof x !== undefined ) ;
163+ if ( typeof window !== undefined ) ;
164164 if ( typeof x !== x ) ;
165- if ( typeof x !== u ) ; // $ Alert[js/comparison-between-incompatible-types]
165+ if ( typeof x !== u ) ; // $ Alert
166166
167167 if ( typeof window !== "undefined" ) ;
168168 if ( typeof module !== "undefined" ) ;
172172 if ( typeof module !== "undefined" && module . exports ) ;
173173 if ( typeof global !== "undefined" && global . process ) ;
174174
175- u && ( f ( ) , u . p ) ; // $ Alert[js/trivial-conditional]
176- u && ( u . p , f ( ) ) ; // $ Alert[js/trivial-conditional] - technically not OK, but it seems like an unlikely pattern
175+ u && ( f ( ) , u . p ) ;
176+ u && ( u . p , f ( ) ) ; // technically not OK, but it seems like an unlikely pattern
177177 u && ! u . p ; // $ MISSING: Alert
178178 u && ! u ( ) ; // $ MISSING: Alert
179179
You can’t perform that action at this time.
0 commit comments