File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
javascript/ql/test/query-tests/Security/CWE-079 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 152152
153153 $ . fn . my_plugin = function my_plugin ( options ) {
154154 let target = options . target ;
155- target === DEFAULTS . target ? $ ( target ) : $ ( document ) . find ( target ) ; // NOT OK - but not flagged [INCONSISTENCY]
156- options . target === DEFAULTS . target ? $ ( options . target ) : $ ( document ) . find ( options . target ) ; // NOT OK - but not flagged [INCONSISTENCY]
155+ target === DEFAULTS . target ? $ ( target ) : $ ( document ) . find ( target ) ; // OK
156+ options . target === DEFAULTS . target ? $ ( options . target ) : $ ( document ) . find ( options . target ) ; // OK
157157 options . targets . a === DEFAULTS . target ? $ ( options . target . a ) : $ ( document ) . find ( options . target . a ) ; // OK - but still flagged [INCONSISTENCY]
158158 }
159159
You can’t perform that action at this time.
0 commit comments