Skip to content

Commit 8d26f32

Browse files
committed
arg -> param
1 parent 87d283a commit 8d26f32

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

javascript/ql/src/semmle/javascript/security/UselessUseOfCat.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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()]

0 commit comments

Comments
 (0)