File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
javascript/ql/src/semmle/javascript/security Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -185,20 +185,20 @@ module PrettyPrintCatCall {
185185 * Create a string representing the callback `func`.
186186 */
187187 string createCallbackString ( DataFlow:: FunctionNode func ) {
188- exists ( string args | args = createCallbackArgs ( func ) |
188+ exists ( string params | params = createCallbackParams ( func ) |
189189 if func .getFunction ( ) instanceof ArrowFunctionExpr
190190 then
191191 if func .getFunction ( ) .getBody ( ) instanceof Expr
192- then result = ", (" + args + ") => ..."
193- else result = ", (" + args + ") => {...}"
194- else result = ", function(" + args + ") {...}"
192+ then result = ", (" + params + ") => ..."
193+ else result = ", (" + params + ") => {...}"
194+ else result = ", function(" + params + ") {...}"
195195 )
196196 }
197197
198198 /**
199199 * Create a string concatenation of the parameter names in a function `func`.
200200 */
201- private string createCallbackArgs ( DataFlow:: FunctionNode func ) {
201+ private string createCallbackParams ( DataFlow:: FunctionNode func ) {
202202 result =
203203 concat ( int i |
204204 i = [ 0 .. func .getNumParameter ( ) ]
You can’t perform that action at this time.
0 commit comments